diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index 8b41f6f76351..bcb7dfc99f93 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp @@ -105,6 +105,7 @@ void DAGTypeLegalizer::PerformExpensiveChecks() { I = ReplacedValues.find(NewValId); } SDValue NewVal = getSDValue(NewValId); + (void)NewVal; assert(NewVal.getNode()->getNodeId() != NewNode && "ReplacedValues maps to a new node!"); }