diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-30 23:03:37 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-30 23:03:37 +0000 |
commit | b292b8ce708d8d5fa4286f1bc2855d6ac0d0f526 (patch) | |
tree | 4847eb648a3d471bdd4b7653a8f83ad5cb4224bd /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | 5ac2f49516d8624d998873dbd322e22f0ee5f358 (diff) | |
download | bcm5719-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/LoopUnswitch.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index 5bba625009b..95eb3cf2185 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -821,7 +821,7 @@ void LoopUnswitch::RemoveBlockIfDead(BasicBlock *BB, // Anything that uses the instructions in this basic block should have their // uses replaced with undefs. if (!I->use_empty()) - I->replaceAllUsesWith(I->getContext().getUndef(I->getType())); + I->replaceAllUsesWith(UndefValue::get(I->getType())); } // If this is the edge to the header block for a loop, remove the loop and |