summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/clang-modernize/LoopConvert/LoopActions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.cpp b/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.cpp
index 00080f0d927..9512bf73a61 100644
--- a/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.cpp
+++ b/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.cpp
@@ -1074,7 +1074,7 @@ void LoopFixer::run(const MatchFinder::MatchResult &Result) {
Nodes.getNodeAs<CXXMemberCallExpr>(BeginCallName);
assert(BeginCall != 0 && "Bad Callback. No begin call expression.");
QualType CanonicalBeginType =
- BeginCall->getMethodDecl()->getResultType().getCanonicalType();
+ BeginCall->getMethodDecl()->getReturnType().getCanonicalType();
if (CanonicalBeginType->isPointerType() &&
CanonicalInitVarType->isPointerType()) {
OpenPOWER on IntegriCloud