Get the right location to insert the synthesized block literals/functions.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56987 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/RewriteBlocks.cpp b/Driver/RewriteBlocks.cpp
index 89b1466..1cecc79 100644
--- a/Driver/RewriteBlocks.cpp
+++ b/Driver/RewriteBlocks.cpp
@@ -554,7 +554,7 @@
 }
 
 void RewriteBlocks::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) {
-  SourceLocation FunLocStart = FD->getLocation();
+  SourceLocation FunLocStart = FD->getTypeSpecStartLoc();
   const char *FuncName = FD->getName();
   
   SynthesizeBlockLiterals(FunLocStart, FuncName);