OSDN Git Service

Revert "Protect some assertions with NDEBUG rather than DEBUG()."
authorJustin Lebar <jlebar@google.com>
Fri, 1 Apr 2016 01:23:23 +0000 (01:23 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 1 Apr 2016 01:23:23 +0000 (01:23 +0000)
This reverts r265092, because it breaks CodeGen/X86/deopt-intrinsic.ll.

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

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index e3acfd2..71c015d 100644 (file)
@@ -7446,13 +7446,12 @@ TargetLowering::LowerCallTo(TargetLowering::CallLoweringInfo &CLI) const {
     return std::make_pair(SDValue(), SDValue());
   }
 
-#ifndef NDEBUG
-  for (unsigned i = 0, e = CLI.Ins.size(); i != e; ++i) {
-    assert(InVals[i].getNode() && "LowerCall emitted a null value!");
-    assert(EVT(CLI.Ins[i].VT) == InVals[i].getValueType() &&
-           "LowerCall emitted a value with the wrong type!");
-  }
-#endif
+  DEBUG(for (unsigned i = 0, e = CLI.Ins.size(); i != e; ++i) {
+          assert(InVals[i].getNode() &&
+                 "LowerCall emitted a null value!");
+          assert(EVT(CLI.Ins[i].VT) == InVals[i].getValueType() &&
+                 "LowerCall emitted a value with the wrong type!");
+        });
 
   SmallVector<SDValue, 4> ReturnValues;
   if (!CanLowerReturn) {