From 103d4b43e9c19baab8db0388f72aa86bf013ec9e Mon Sep 17 00:00:00 2001 From: David Greene Date: Mon, 10 May 2010 20:24:27 +0000 Subject: 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. llvm-svn: 103425 --- llvm/test/Other/2010-05-60-Printer.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llvm/test/Other/2010-05-60-Printer.ll (limited to 'llvm/test/Other') diff --git a/llvm/test/Other/2010-05-60-Printer.ll b/llvm/test/Other/2010-05-60-Printer.ll new file mode 100644 index 00000000000..9ead740a51f --- /dev/null +++ b/llvm/test/Other/2010-05-60-Printer.ll @@ -0,0 +1,6 @@ +; RUN: llc -O2 -print-after-all < %s 2>@1 + +define void @tester(){ + ret void +} + -- cgit v1.2.3