summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-16 23:58:57 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-16 23:58:57 +0000
commit009f69979aaddc324373e6b29385777ed2c69136 (patch)
treeda17b6deac6463ee99daa3d8411c194ce0b3b56a /clang/lib/CodeGen/CodeGenFunction.cpp
parent2756d605639849358045bc1264963d9f63620d47 (diff)
downloadbcm5719-llvm-009f69979aaddc324373e6b29385777ed2c69136.tar.gz
bcm5719-llvm-009f69979aaddc324373e6b29385777ed2c69136.zip
When dealing with an anonymous enumeration declared in function
prototype scope, temporarily set the context of the enumeration declaration to the translation unit. We do the same thing for parameters, until we have an actual function declaration on which to hang them. Fixes <rdar://problem/8435682>. There is more work to do in this area, since we have existing bugs with tags being declared/defined in function parameter lists. This fix is correct, and we'll end up extending it when we deal with those existing bugs. llvm-svn: 114135
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud