summaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO/PruneEH.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-06 01:34:54 +0000
committerOwen Anderson <resistor@mac.com>2009-07-06 01:34:54 +0000
commit14ce9ef2e9013ba56e1daafebd91fe3ee1e8647e (patch)
tree5e088b350f6c0872c6637e1abfd0b74d8d85b891 /lib/Transforms/IPO/PruneEH.cpp
parente8c81ea3f8e00c55f55d7f0aa9a1ff6a97211786 (diff)
downloadexternal_llvm-14ce9ef2e9013ba56e1daafebd91fe3ee1e8647e.zip
external_llvm-14ce9ef2e9013ba56e1daafebd91fe3ee1e8647e.tar.gz
external_llvm-14ce9ef2e9013ba56e1daafebd91fe3ee1e8647e.tar.bz2
More LLVMContext-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/PruneEH.cpp')
-rw-r--r--lib/Transforms/IPO/PruneEH.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp
index 2b52f46..d1b4a37 100644
--- a/lib/Transforms/IPO/PruneEH.cpp
+++ b/lib/Transforms/IPO/PruneEH.cpp
@@ -19,6 +19,7 @@
#include "llvm/CallGraphSCCPass.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
+#include "llvm/LLVMContext.h"
#include "llvm/Instructions.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/Analysis/CallGraph.h"
@@ -242,7 +243,7 @@ void PruneEH::DeleteBasicBlock(BasicBlock *BB) {
} else if (InvokeInst *II = dyn_cast<InvokeInst>(I))
CGN->removeCallEdgeFor(II);
if (!I->use_empty())
- I->replaceAllUsesWith(UndefValue::get(I->getType()));
+ I->replaceAllUsesWith(Context->getUndef(I->getType()));
}
// Get the list of successors of this block.