diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-05-04 02:29:49 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-05-04 02:29:49 +0000 |
| commit | 7b9293ba20009be4d08f2155a2f1863f4aff6d9f (patch) | |
| tree | 3372347d35439fecbacb9baf8125b39a5230ccc6 /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | bc22b5b3278b44e6ae4406ad6ac79f1cab731b0f (diff) | |
Simplify FunctionDecl::AddRedeclaration a bit by using std::swap.
Fix 'swapping' of attributes to not insert null values into the
DeclAttrs map.
llvm-svn: 50612
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index bacb610a50a5..d050278406f8 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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?"); |
