Avoid unused variable in non-assert builds.

llvm-svn: 334731
This commit is contained in:
Nirav Dave 2018-06-14 15:55:15 +00:00
parent 4729d1ff27
commit 41e69a8e8b
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ void DAGTypeLegalizer::PerformExpensiveChecks() {
I = ReplacedValues.find(NewValId); I = ReplacedValues.find(NewValId);
} }
SDValue NewVal = getSDValue(NewValId); SDValue NewVal = getSDValue(NewValId);
(void)NewVal;
assert(NewVal.getNode()->getNodeId() != NewNode && assert(NewVal.getNode()->getNodeId() != NewNode &&
"ReplacedValues maps to a new node!"); "ReplacedValues maps to a new node!");
} }