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/Scalar/SimplifyCFGPass.cpp b/lib/Transforms/Scalar/SimplifyCFGPass.cpp index 3596ed6..3ea6ddd 100644 --- a/lib/Transforms/Scalar/SimplifyCFGPass.cpp +++ b/lib/Transforms/Scalar/SimplifyCFGPass.cpp
@@ -71,7 +71,7 @@ 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++); } }