[llvm] r193861 - Fixing an order of evaluation error in an assert.
Aaron Ballman
aaron at aaronballman.com
Fri Nov 1 07:53:14 PDT 2013
Author: aaronballman
Date: Fri Nov 1 09:53:14 2013
New Revision: 193861
URL: http://llvm.org/viewvc/llvm-project?rev=193861&view=rev
Log:
Fixing an order of evaluation error in an assert.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=193861&r1=193860&r2=193861&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Fri Nov 1 09:53:14 2013
@@ -6785,7 +6785,7 @@ void SelectionDAGBuilder::visitStackmap(
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.
More information about the llvm-commits
mailing list