Turn off the SparcV9MachineCodeDestructionPass for now, because it's buggy
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 27 Feb 2004 21:15:40 +0000 (21:15 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 27 Feb 2004 21:15:40 +0000 (21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11930 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9TargetMachine.cpp

index 293937276b0a4d10f4e4a2eea66a3b0b148a31d1..9611c1041ec96b30abcec0cab4a24c83b681fc69 100644 (file)
@@ -177,7 +177,12 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
   // allowing machine code representations for functions to be free'd after the
   // function has been emitted.
   PM.add(createAsmPrinterPass(Out, *this));
-  PM.add(createSparcV9MachineCodeDestructionPass()); // Free mem no longer needed
+
+  // FIXME: this pass crashes if added; there is a double deletion going on
+  // somewhere inside it. This is caught when running the SparcV9 code generator
+  // on X86, but is typically ignored when running natively.
+  // Free machine-code IR which is no longer needed:
+  // PM.add(createSparcV9MachineCodeDestructionPass());
 
   // Emit bytecode to the assembly file into its special section next
   if (EmitMappingInfo)