commit | 9e9a0d5fc26878e51a58a8b57900fcbf952c2691 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Thu Jul 30 23:03:37 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Thu Jul 30 23:03:37 2009 +0000 |
tree | 477eb7b58abe6134ff6accc805279396a77892e8 | |
parent | 124e6eb09d47674a4bac48a522e83e4513a970e5 [diff] [blame] |
Move more code back to 2.5 APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77635 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 045b428..69a2084 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp
@@ -166,7 +166,7 @@ // Delete the dead terminator. if (AA) AA->deleteValue(TI); if (!TI->use_empty()) - TI->replaceAllUsesWith(F.getContext().getUndef(TI->getType())); + TI->replaceAllUsesWith(UndefValue::get(TI->getType())); TI->eraseFromParent(); Changed |= true; }