Fixing an order of evaluation error in an assert.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 1 Nov 2013 14:53:14 +0000 (14:53 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 1 Nov 2013 14:53:14 +0000 (14:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193861 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 8ff8427b4d150d290a458e9c6f39f3b378d1fb77..59d72b476bca0612448cd63bb84d23901342f513 100644 (file)
@@ -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.