diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-30 23:11:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-30 23:11:26 +0000 |
commit | 03e205031b08669f05c41eed5b896fc94c4a12bb (patch) | |
tree | d808fa7cc70a38ffaf1fef006c510c0321b08173 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 754431107b61a0523df5271c2876a73dd5a051e9 (diff) |
Update for LLVM API changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index fb4b924765..bb53dcc39e 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -156,7 +156,7 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy, // Create a marker to make it easy to insert allocas into the entryblock // later. Don't create this with the builder, because we don't want it // folded. - llvm::Value *Undef = VMContext.getUndef(llvm::Type::Int32Ty); + llvm::Value *Undef = llvm::UndefValue::get(llvm::Type::Int32Ty); AllocaInsertPt = new llvm::BitCastInst(Undef, llvm::Type::Int32Ty, "", EntryBB); if (Builder.isNamePreserving()) |