summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-10-03 00:12:09 +0000
committerSteve Naroff <snaroff@apple.com>2008-10-03 00:12:09 +0000
commit49428dbdd53172ca1172d53a505974d418ce7bf5 (patch)
tree78f6017aa0aad5446633cf3f26246516c6b48323
parentd9ef073176d9bb0aa4052031150500fdfc3f7183 (diff)
downloadbcm5719-llvm-49428dbdd53172ca1172d53a505974d418ce7bf5.tar.gz
bcm5719-llvm-49428dbdd53172ca1172d53a505974d418ce7bf5.zip
Get the right location to insert the synthesized block literals/functions.
llvm-svn: 56987
-rw-r--r--clang/Driver/RewriteBlocks.cpp2
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);
OpenPOWER on IntegriCloud