aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-11-01 14:53:14 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-11-01 14:53:14 +0000
commit8d13de3f0900e674920921bfb2d1b4c1893c0f27 (patch)
tree5f5ef4b3acbe69ce37c6745daa53c366ba5aa43f /lib/CodeGen/SelectionDAG
parent7208b0763c9fca2c6364c642d28fd014a496cc37 (diff)
downloadexternal_llvm-8d13de3f0900e674920921bfb2d1b4c1893c0f27.zip
external_llvm-8d13de3f0900e674920921bfb2d1b4c1893c0f27.tar.gz
external_llvm-8d13de3f0900e674920921bfb2d1b4c1893c0f27.tar.bz2
Fixing an order of evaluation error in an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 8ff8427..59d72b4 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -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.