From: Francis Visoiu Mistrih Date: Fri, 15 Jun 2018 23:05:40 +0000 (+0000) Subject: Revert r334731 "Avoid unused variable in non-assert builds." X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c9df30ecaa9d098df954523c3ba63a7a31c022a;p=platform%2Fupstream%2Fllvm.git Revert r334731 "Avoid unused variable in non-assert builds." This reverts commit r334731. It breaks EXPENSIVE_CHECKS bots. llvm-svn: 334868 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index bcb7dfc..8b41f6f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp @@ -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!"); }