Skip to content

Commit

Permalink
Fixing an order of evaluation error in an assert.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193861 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
AaronBallman committed Nov 1, 2013
1 parent 7208b07 commit 8d13de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6785,7 +6785,7 @@ void SelectionDAGBuilder::visitStackmap(const CallInst &CI) {
SDNode *Call = CallEnd->getOperand(0).getNode();
bool hasGlue = Call->getGluedNode();

assert(Call->getNumOperands() == hasGlue ? 2 : 1 &&
assert(Call->getNumOperands() == (hasGlue ? 2 : 1) &&
"Unexpected extra stackmap call arguments.");

// Replace the target specific call node with the stackmap intrinsic.
Expand Down

0 comments on commit 8d13de3

Please sign in to comment.