Stop using the dom frontier in DwarfEHPrepare by not promoting alloca's
[oota-llvm.git] / lib / CodeGen / LLVMTargetMachine.cpp
index 80dbb988df607a58769a3a3cacdc885962e3fc88..36038027b259436fe5e9ef2225abfba30df5998e 100644 (file)
@@ -289,7 +289,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
     PM.add(createSjLjEHPass(getTargetLowering()));
     // FALLTHROUGH
   case ExceptionHandling::Dwarf:
-    PM.add(createDwarfEHPass(this, OptLevel==CodeGenOpt::None));
+    PM.add(createDwarfEHPass(this));
     break;
   case ExceptionHandling::None:
     PM.add(createLowerInvokePass(getTargetLowering()));