Switch to getName()
authorDaniel Dunbar <daniel@zuster.org>
Sun, 26 Jul 2009 09:28:40 +0000 (09:28 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 26 Jul 2009 09:28:40 +0000 (09:28 +0000)
llvm-svn: 77151

clang/lib/CodeGen/CGBuiltin.cpp

index 7209446..ffd19e3 100644 (file)
@@ -81,7 +81,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,
       VMContext.getPointerTypeUnqual(llvm::Type::Int8Ty);
     if (ArgValue->getType() != DestType)
       ArgValue = Builder.CreateBitCast(ArgValue, DestType, 
-                                       ArgValue->getNameStart());
+                                       ArgValue->getName().data());
 
     Intrinsic::ID inst = (BuiltinID == Builtin::BI__builtin_va_end) ? 
       Intrinsic::vaend : Intrinsic::vastart;