Revert last commit. It was wrong.
authorBill Wendling <isanbard@gmail.com>
Mon, 18 May 2009 18:21:03 +0000 (18:21 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 18 May 2009 18:21:03 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72026 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp

index b8f22d6bfa25c48d7a252cecf797c822d6a4968a..bbd8b5aa360c1fd9bef943e7c508857a59fa7dbf 100644 (file)
@@ -3929,8 +3929,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
       MachineFunction &MF = DAG.getMachineFunction();
       DISubprogram Subprogram(cast<GlobalVariable>(REI.getContext()));
 
-      if (OptLevel == CodeGenOpt::None ||
-          Subprogram.isNull() || Subprogram.describes(MF.getFunction())) {
+      if (Subprogram.isNull() || Subprogram.describes(MF.getFunction())) {
         unsigned LabelID =
           DW->RecordRegionEnd(cast<GlobalVariable>(REI.getContext()));
         DAG.setRoot(DAG.getLabel(ISD::DBG_LABEL, getCurDebugLoc(),