aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCast.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-12 04:48:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-12 04:48:45 +0000
commit9335df324951c022bc696e64b5fe9f66a8ad5222 (patch)
tree845090ab42e825aa75c6f7cf5599ae76b329e459 /lib/Sema/SemaCast.cpp
parent5b9cc5df25c2198f270dd1d5c438fdce70d4051d (diff)
Fix the rewriter that broke with r149987.
r149987 changed the way parsing happens inside an @implementation; it aggregates the declarations inside and reports them together as a DeclGroup. This had the side effect that function declarations were reported together with their definition, while the rewriter expected for function declarations to be reported immediately to the consumer and thus not have a body. Fix this by having the rewriter actually check with isThisDeclarationADefinition() to make sure the body comes from the current decl before rewriting it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCast.cpp')
0 files changed, 0 insertions, 0 deletions