[llvm] r334731 - Avoid unused variable in non-assert builds.
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 14 08:55:15 PDT 2018
Author: niravd
Date: Thu Jun 14 08:55:15 2018
New Revision: 334731
URL: http://llvm.org/viewvc/llvm-project?rev=334731&view=rev
Log:
Avoid unused variable in non-assert builds.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp?rev=334731&r1=334730&r2=334731&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp Thu Jun 14 08:55:15 2018
@@ -105,6 +105,7 @@ void DAGTypeLegalizer::PerformExpensiveC
I = ReplacedValues.find(NewValId);
}
SDValue NewVal = getSDValue(NewValId);
+ (void)NewVal;
assert(NewVal.getNode()->getNodeId() != NewNode &&
"ReplacedValues maps to a new node!");
}
More information about the llvm-commits
mailing list