From a212c56e9b7533bcc2d6be90efd52ad241bf894e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 4 May 2008 02:29:49 +0000 Subject: 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 --- lib/CodeGen/CodeGenFunction.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/CodeGen/CodeGenFunction.cpp') 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(CGM.GetAddrOfFunctionDecl(FD, true)); assert(CurFn->isDeclaration() && "Function already has body?"); -- cgit v1.2.3-18-g5258