]> granicus.if.org Git - clang/commit
Short-circuit a couple of queries (and avoid corrupting
authorJohn McCall <rjmccall@apple.com>
Wed, 29 Jan 2014 08:33:09 +0000 (08:33 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 29 Jan 2014 08:33:09 +0000 (08:33 +0000)
commit44f56e4c8797dc691c3bf57af2a0910b7f110991
tree85efc42aa5de9cf438d3cdc43d0519cf0fe516b5
parent4e88652a34dca760f366a2bf5356c8e7d0159464
Short-circuit a couple of queries (and avoid corrupting
the linkage cache) when type-checking static local
variables.

There's a very deep problem here where the linkage of
a declaration can suddenly massively change as soon as
it's given a typedef name; these fixes, while optimizations
in their own right, are really just targeted workarounds.

rdar://15928125

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200380 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/linkage.cpp