From bad13eb189743ca54999b984613aa1c56fdd08c3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 2 Nov 2005 17:42:58 +0000 Subject: [PATCH] Fix a QOI issue noticed by Markus F.X.J. Oberhumer. This fixes PR641 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24154 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 1 + lib/Target/CBackend/Writer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 8ff23b7008b..7d0c21ab0c3 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1731,6 +1731,7 @@ bool CTargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &o, PM.add(createLowerGCPass()); PM.add(createLowerAllocationsPass(true)); PM.add(createLowerInvokePass()); + PM.add(createCFGSimplificationPass()); // clean up after lower invoke. PM.add(new CBackendNameAllUsedStructs()); PM.add(new CWriter(o, getIntrinsicLowering())); return false; diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 8ff23b7008b..7d0c21ab0c3 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -1731,6 +1731,7 @@ bool CTargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &o, PM.add(createLowerGCPass()); PM.add(createLowerAllocationsPass(true)); PM.add(createLowerInvokePass()); + PM.add(createCFGSimplificationPass()); // clean up after lower invoke. PM.add(new CBackendNameAllUsedStructs()); PM.add(new CWriter(o, getIntrinsicLowering())); return false;