summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-25 23:51:36 +0000
committerAlp Toker <alp@nuanti.com>2014-01-25 23:51:36 +0000
commit42a16a67f53da8b0eceabdc92a5f89d93a4d2c74 (patch)
tree562f2357c7f10f8c19f0ee8c2ccdf2234b1f3f94 /clang/lib/Sema/SemaStmt.cpp
parent48a6daa70f7413dcc25dc11da8910af9849c1062 (diff)
downloadbcm5719-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/SemaStmt.cpp')
-rw-r--r--clang/lib/Sema/SemaStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index 554535dcf22..65ce405c55d 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/lib/Sema/SemaStmt.cpp
@@ -2712,7 +2712,7 @@ bool Sema::DeduceFunctionTypeFromReturnExpr(FunctionDecl *FD,
Expr *&RetExpr,
AutoType *AT) {
TypeLoc OrigResultType = FD->getTypeSourceInfo()->getTypeLoc().
- IgnoreParens().castAs<FunctionProtoTypeLoc>().getResultLoc();
+ IgnoreParens().castAs<FunctionProtoTypeLoc>().getReturnLoc();
QualType Deduced;
if (RetExpr && isa<InitListExpr>(RetExpr)) {
OpenPOWER on IntegriCloud