diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-25 23:51:36 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-25 23:51:36 +0000 |
commit | 42a16a67f53da8b0eceabdc92a5f89d93a4d2c74 (patch) | |
tree | 562f2357c7f10f8c19f0ee8c2ccdf2234b1f3f94 /clang/lib/Sema/SemaDecl.cpp | |
parent | 48a6daa70f7413dcc25dc11da8910af9849c1062 (diff) | |
download | bcm5719-llvm-42a16a67f53da8b0eceabdc92a5f89d93a4d2c74.tar.gz bcm5719-llvm-42a16a67f53da8b0eceabdc92a5f89d93a4d2c74.zip |
Rename getResultLoc() too
Follow up to r200082.
Spotted by Dmitri
llvm-svn: 200105
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index d4be61a2276..a70bece3e89 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -7652,7 +7652,7 @@ static SourceRange getResultSourceRange(const FunctionDecl *FD) { if (!FunctionTL) return SourceRange(); - TypeLoc ResultTL = FunctionTL.getResultLoc(); + TypeLoc ResultTL = FunctionTL.getReturnLoc(); if (ResultTL.getUnqualifiedLoc().getAs<BuiltinTypeLoc>()) return ResultTL.getSourceRange(); @@ -9732,7 +9732,7 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, } else { // Substitute 'void' for the 'auto' in the type. TypeLoc ResultType = FD->getTypeSourceInfo()->getTypeLoc(). - IgnoreParens().castAs<FunctionProtoTypeLoc>().getResultLoc(); + IgnoreParens().castAs<FunctionProtoTypeLoc>().getReturnLoc(); Context.adjustDeducedFunctionResultType( FD, SubstAutoType(ResultType.getType(), Context.VoidTy)); } |