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/CGCXX.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/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index b8b774f7f0..4d48f0801f 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -267,7 +267,7 @@ CodeGenFunction::EmitCXXConstructExpr(llvm::Value *Dest, llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { if (E->isArray()) { ErrorUnsupported(E, "new[] expression"); - return VMContext.getUndef(ConvertType(E->getType())); + return llvm::UndefValue::get(ConvertType(E->getType())); } QualType AllocType = E->getAllocatedType(); |