Revert r334731 "Avoid unused variable in non-assert builds."
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 15 Jun 2018 23:05:40 +0000 (23:05 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 15 Jun 2018 23:05:40 +0000 (23:05 +0000)
This reverts commit r334731.

It breaks EXPENSIVE_CHECKS bots.

llvm-svn: 334868

llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp

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