From: Aaron Ballman Date: Fri, 1 Nov 2013 14:53:14 +0000 (+0000) Subject: Fixing an order of evaluation error in an assert. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8d13de3f0900e674920921bfb2d1b4c1893c0f27;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 8ff8427b4d1..59d72b476bc 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.