]> granicus.if.org Git - clang/commit
Mangle based on the declaration we're given, not the canonical
authorDouglas Gregor <dgregor@apple.com>
Wed, 28 Oct 2009 16:31:34 +0000 (16:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 28 Oct 2009 16:31:34 +0000 (16:31 +0000)
commit457e2815d43fa68f7ff7cd2f7e9d1bf7b6fdc653
tree72d34991a911e99b4c4b05fa41d4a80416dfed6c
parente7e18200e614a5e619602a088544c85ac8305a1f
Mangle based on the declaration we're given, not the canonical
declaration, since attributes that affect mangling may have been added
to subsequent declarations. However, to determine the linkage of the
declaration, we need to look at the canonical declaration. Fixes PR4412.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85400 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Redeclarable.h
lib/CodeGen/Mangle.cpp
test/CodeGen/mangle.c