mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix PR6875:
This includes a patch by Roman Divacky to fix the initial crash. Move the actual addition of passes from *PassManager::add to *PassManager::addImpl. That way, when adding printer passes we won't recurse infinitely. Finally, check to make sure that we are actually adding a FunctionPass to a FunctionPassManager before doing a print before or after it. Immutable passes are strange in this way because they aren't FunctionPasses yet they can be and are added to the FunctionPassManager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
6
test/Other/2010-05-60-Printer.ll
Normal file
6
test/Other/2010-05-60-Printer.ll
Normal file
@@ -0,0 +1,6 @@
|
||||
; RUN: llc -O2 -print-after-all < %s 2>@1
|
||||
|
||||
define void @tester(){
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user