diff options
author | Steve Naroff <snaroff@apple.com> | 2008-10-03 00:12:09 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-10-03 00:12:09 +0000 |
commit | 49428dbdd53172ca1172d53a505974d418ce7bf5 (patch) | |
tree | 78f6017aa0aad5446633cf3f26246516c6b48323 /clang/Driver/RewriteBlocks.cpp | |
parent | d9ef073176d9bb0aa4052031150500fdfc3f7183 (diff) | |
download | bcm5719-llvm-49428dbdd53172ca1172d53a505974d418ce7bf5.tar.gz bcm5719-llvm-49428dbdd53172ca1172d53a505974d418ce7bf5.zip |
Get the right location to insert the synthesized block literals/functions.
llvm-svn: 56987
Diffstat (limited to 'clang/Driver/RewriteBlocks.cpp')
-rw-r--r-- | clang/Driver/RewriteBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Driver/RewriteBlocks.cpp b/clang/Driver/RewriteBlocks.cpp index 89b1466846b..1cecc79aa9c 100644 --- a/clang/Driver/RewriteBlocks.cpp +++ b/clang/Driver/RewriteBlocks.cpp @@ -554,7 +554,7 @@ void RewriteBlocks::SynthesizeBlockLiterals(SourceLocation FunLocStart, } void RewriteBlocks::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) { - SourceLocation FunLocStart = FD->getLocation(); + SourceLocation FunLocStart = FD->getTypeSpecStartLoc(); const char *FuncName = FD->getName(); SynthesizeBlockLiterals(FunLocStart, FuncName); |