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

llvm-svn: 56987
This commit is contained in:
Steve Naroff 2008-10-03 00:12:09 +00:00
parent d9ef073176
commit 49428dbdd5
1 changed files with 1 additions and 1 deletions

View File

@ -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);