OSDN Git Service

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334868 91177308-0d34-0410-b5e6-96231b3b80d8

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!");
       }