summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-30 23:03:37 +0000
committerOwen Anderson <resistor@mac.com>2009-07-30 23:03:37 +0000
commitb292b8ce708d8d5fa4286f1bc2855d6ac0d0f526 (patch)
tree4847eb648a3d471bdd4b7653a8f83ad5cb4224bd /llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
parent5ac2f49516d8624d998873dbd322e22f0ee5f358 (diff)
downloadbcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.tar.gz
bcm5719-llvm-b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526.zip
Move more code back to 2.5 APIs.
llvm-svn: 77635
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
index 3596ed6b14f..3ea6ddd67c2 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
@@ -71,7 +71,7 @@ static void ChangeToUnreachable(Instruction *I, LLVMContext &Context) {
BasicBlock::iterator BBI = I, BBE = BB->end();
while (BBI != BBE) {
if (!BBI->use_empty())
- BBI->replaceAllUsesWith(Context.getUndef(BBI->getType()));
+ BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
BB->getInstList().erase(BBI++);
}
}
OpenPOWER on IntegriCloud