forked from OSchip/llvm-project
Get the right location to insert the synthesized block literals/functions.
llvm-svn: 56987
This commit is contained in:
parent
d9ef073176
commit
49428dbdd5
|
@ -554,7 +554,7 @@ void RewriteBlocks::SynthesizeBlockLiterals(SourceLocation FunLocStart,
|
||||||
}
|
}
|
||||||
|
|
||||||
void RewriteBlocks::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) {
|
void RewriteBlocks::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) {
|
||||||
SourceLocation FunLocStart = FD->getLocation();
|
SourceLocation FunLocStart = FD->getTypeSpecStartLoc();
|
||||||
const char *FuncName = FD->getName();
|
const char *FuncName = FD->getName();
|
||||||
|
|
||||||
SynthesizeBlockLiterals(FunLocStart, FuncName);
|
SynthesizeBlockLiterals(FunLocStart, FuncName);
|
||||||
|
|
Loading…
Reference in New Issue