aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/BasicBlock.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-07 23:43:39 +0000
committerOwen Anderson <resistor@mac.com>2009-07-07 23:43:39 +0000
commitf81b57694b3c34a79b1464ffd21e6768c8d22662 (patch)
treed2b7eb3c4d7cab141ac78d108f78160dcc5d777c /lib/VMCore/BasicBlock.cpp
parentbc8a94540a65907472bf6d6e43c8fea864116cf5 (diff)
downloadexternal_llvm-f81b57694b3c34a79b1464ffd21e6768c8d22662.zip
external_llvm-f81b57694b3c34a79b1464ffd21e6768c8d22662.tar.gz
external_llvm-f81b57694b3c34a79b1464ffd21e6768c8d22662.tar.bz2
LLVMContext-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r--lib/VMCore/BasicBlock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp
index ad54f15..4a4bf28 100644
--- a/lib/VMCore/BasicBlock.cpp
+++ b/lib/VMCore/BasicBlock.cpp
@@ -14,6 +14,7 @@
#include "llvm/BasicBlock.h"
#include "llvm/Constants.h"
#include "llvm/Instructions.h"
+#include "llvm/LLVMContext.h"
#include "llvm/Type.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/CFG.h"
@@ -202,7 +203,7 @@ void BasicBlock::removePredecessor(BasicBlock *Pred,
PN->replaceAllUsesWith(PN->getOperand(0));
else
// We are left with an infinite loop with no entries: kill the PHI.
- PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
+ PN->replaceAllUsesWith(getContext()->getUndef(PN->getType()));
getInstList().pop_front(); // Remove the PHI node
}