[cfe-commits] r39667 - /cfe/cfe/trunk/CodeGen/CGDecl.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:46:56 PDT 2007
Author: clattner
Date: Wed Jul 11 11:46:55 2007
New Revision: 39667
URL: http://llvm.org/viewvc/llvm-project?rev=39667&view=rev
Log:
fix naming of aggregate arguments.
Modified:
cfe/cfe/trunk/CodeGen/CGDecl.cpp
Modified: cfe/cfe/trunk/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/CodeGen/CGDecl.cpp?rev=39667&r1=39666&r2=39667&view=diff
==============================================================================
--- cfe/cfe/trunk/CodeGen/CGDecl.cpp (original)
+++ cfe/cfe/trunk/CodeGen/CGDecl.cpp Wed Jul 11 11:46:55 2007
@@ -95,7 +95,6 @@
if (!Ty->isConstantSizeType()) {
// Variable sized values always are passed by-reference.
DeclPtr = Arg;
- Arg->setName(DeclPtr->getName());
} else {
// A fixed sized first class variable becomes an alloca in the entry block.
const llvm::Type *LTy = ConvertType(Ty, D.getLocation());
@@ -106,13 +105,10 @@
// Store the initial value into the alloca.
Builder.CreateStore(Arg, DeclPtr);
-
- Arg->setName(D.getName());
} else {
// Otherwise, if this is an aggregate, just use the input pointer.
- DeclPtr = Arg;
- Arg->setName(DeclPtr->getName());
}
+ Arg->setName(D.getName());
}
llvm::Value *&DMEntry = LocalDeclMap[&D];
More information about the cfe-commits
mailing list