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 | 7ec07a573c6489e18687731a4faed12b55d370d1 (patch) | |
| tree | f750f1691509cb36b05da6d8ea88ed78f8bfc188 /clang/lib/CodeGen/CGBuiltin.cpp | |
| parent | 16e5124a828fea795bb28f112e752fd4030a678f (diff) | |
| download | bcm5719-llvm-7ec07a573c6489e18687731a4faed12b55d370d1.tar.gz bcm5719-llvm-7ec07a573c6489e18687731a4faed12b55d370d1.zip | |
Update for LLVM API changes.
llvm-svn: 77638
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 05f27d57a62..9f88bb8cbfa 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -605,7 +605,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,    // Unknown builtin, for now just dump it out and return undef.    if (hasAggregateLLVMType(E->getType()))      return RValue::getAggregate(CreateTempAlloca(ConvertType(E->getType()))); -  return RValue::get(VMContext.getUndef(ConvertType(E->getType()))); +  return RValue::get(llvm::UndefValue::get(ConvertType(E->getType())));  }      Value *CodeGenFunction::EmitTargetBuiltinExpr(unsigned BuiltinID, @@ -639,7 +639,7 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,      Ops[1] = Builder.CreateZExt(Ops[1], llvm::Type::Int64Ty, "zext");      const llvm::Type *Ty = llvm::VectorType::get(llvm::Type::Int64Ty, 2);      llvm::Value *Zero = llvm::ConstantInt::get(llvm::Type::Int32Ty, 0); -    Ops[1] = Builder.CreateInsertElement(VMContext.getUndef(Ty), +    Ops[1] = Builder.CreateInsertElement(llvm::UndefValue::get(Ty),                                           Ops[1], Zero, "insert");      Ops[1] = Builder.CreateBitCast(Ops[1], Ops[0]->getType(), "bitcast");      const char *name = 0; | 

