[cfe-commits] r145399 - /cfe/trunk/lib/CodeGen/CGDecl.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Nov 29 06:46:55 PST 2011
Author: d0k
Date: Tue Nov 29 08:46:55 2011
New Revision: 145399
URL: http://llvm.org/viewvc/llvm-project?rev=145399&view=rev
Log:
The cheap version of getName() is sufficient here.
Modified:
cfe/trunk/lib/CodeGen/CGDecl.cpp
Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=145399&r1=145398&r2=145399&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Tue Nov 29 08:46:55 2011
@@ -795,7 +795,7 @@
LTy = BuildByRefType(&D);
llvm::AllocaInst *Alloc = CreateTempAlloca(LTy);
- Alloc->setName(D.getNameAsString());
+ Alloc->setName(D.getName());
CharUnits allocaAlignment = alignment;
if (isByRef)
More information about the cfe-commits
mailing list