From: Benjamin Kramer Date: Tue, 29 Nov 2011 14:46:55 +0000 (+0000) Subject: The cheap version of getName() is sufficient here. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a71524d9b51b01e124719f8e538f2bb85eae07e;p=clang The cheap version of getName() is sufficient here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145399 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 1eb8539977..562cc5bb90 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -795,7 +795,7 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) { LTy = BuildByRefType(&D); llvm::AllocaInst *Alloc = CreateTempAlloca(LTy); - Alloc->setName(D.getNameAsString()); + Alloc->setName(D.getName()); CharUnits allocaAlignment = alignment; if (isByRef)