Skip to content

Commit 7ed14ef

Browse files
committed
Generic bugs
1 parent cc3cd13 commit 7ed14ef

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ SDValue SelectionDAG::getJumpTable(int JTI, EVT VT, bool isTarget,
19331933
SDValue SelectionDAG::getJumpTableDebugInfo(int JTI, SDValue Chain,
19341934
const SDLoc &DL) {
19351935
EVT PTy = getTargetLoweringInfo().getPointerTy(getDataLayout());
1936-
return getNode(ISD::JUMP_TABLE_DEBUG_INFO, DL, MVT::Glue, Chain,
1936+
return getNode(ISD::JUMP_TABLE_DEBUG_INFO, DL, MVT::Other, Chain,
19371937
getTargetConstant(static_cast<uint64_t>(JTI), DL, PTy, true));
19381938
}
19391939

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3161,9 +3161,8 @@ void SelectionDAGBuilder::visitSPDescriptorParent(StackProtectorDescriptor &SPD,
31613161
Guard, GuardVal, ISD::SETNE);
31623162

31633163
// If the guard/stackslot do not equal, branch to failure MBB.
3164-
SDValue BrCond = DAG.getNode(ISD::BRCOND, dl,
3165-
MVT::Other, GuardVal.getOperand(0),
3166-
Cmp, DAG.getBasicBlock(SPD.getFailureMBB()));
3164+
SDValue BrCond = DAG.getNode(ISD::BRCOND, dl, MVT::Other, Chain, Cmp,
3165+
DAG.getBasicBlock(SPD.getFailureMBB()));
31673166
// Otherwise branch to success MBB.
31683167
SDValue Br = DAG.getNode(ISD::BR, dl,
31693168
MVT::Other, BrCond,

0 commit comments

Comments
 (0)