]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77151 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBuiltin.cpp

index 7209446ed132b0f2f82c10367dbc164122bffc4a..ffd19e371d9283dc32a786d3edf7c6bad1507449 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;