summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-06-27 20:42:30 +0000
committerDouglas Gregor <dgregor@apple.com>2013-06-27 20:42:30 +0000
commitd943352fabd065ce2eaa21f4a550ed2ffa5353ab (patch)
treee82f4e3d5879fc9adb12f1886e5a6cc8630e6cb4 /lib/CodeGen/CodeGenFunction.cpp
parent6887ff2c70f4afba4e521f8779d041e6d02df464 (diff)
downloadclang-d943352fabd065ce2eaa21f4a550ed2ffa5353ab.tar.gz
clang-d943352fabd065ce2eaa21f4a550ed2ffa5353ab.tar.bz2
clang-d943352fabd065ce2eaa21f4a550ed2ffa5353ab.tar.xz
Under -fms-extensions, only inject a friend tag name when we didn't see a tag with that name in an enclosing scope.
r177473 made us correctly consider only those declarations in the enclosing namespace scope when looking for a friend declaration. Under ms-extensions mode, where we do some level of friend injection, this meant that we were introducing a new tag type into a different scope than what Microsoft actually does. Address this by only doing the friend injection when we didn't see any tag with that name in any outer scope. Fixes <rdar://problem/14250378>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions