]> granicus.if.org Git - clang/commit
Simplify FunctionDecl::AddRedeclaration a bit by using std::swap.
authorChris Lattner <sabre@nondot.org>
Sun, 4 May 2008 02:29:49 +0000 (02:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 May 2008 02:29:49 +0000 (02:29 +0000)
commita212c56e9b7533bcc2d6be90efd52ad241bf894e
tree0dd21ac5afa2e9ed26d85c3833ce79bcb5fff846
parent8fabd78f1976243cb223fb3e969c6f317d1ae44d
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
include/clang/AST/DeclBase.h
lib/AST/Decl.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenModule.cpp