aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-04 02:29:49 +0000
committerChris Lattner <sabre@nondot.org>2008-05-04 02:29:49 +0000
commita212c56e9b7533bcc2d6be90efd52ad241bf894e (patch)
tree0dd21ac5afa2e9ed26d85c3833ce79bcb5fff846 /lib/CodeGen/CodeGenFunction.cpp
parent8fabd78f1976243cb223fb3e969c6f317d1ae44d (diff)
Simplify FunctionDecl::AddRedeclaration a bit by using std::swap.
Fix 'swapping' of attributes to not insert null values into the DeclAttrs map. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index bacb610a50..d050278406 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -153,6 +153,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) {
CurFuncDecl = FD;
FnRetTy = FD->getType()->getAsFunctionType()->getResultType();
+ FD->getType().dump();
CurFn = cast<llvm::Function>(CGM.GetAddrOfFunctionDecl(FD, true));
assert(CurFn->isDeclaration() && "Function already has body?");