aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-16 03:53:54 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-16 03:53:54 +0000
commita303f9eab9ceb356a24d84e178d079f0d41ad8d4 (patch)
treeb9dd7367926319369a65cf6cc49647ca821ef993 /lib/Sema/SemaOverload.cpp
parent6f68027af2b6ce294a2706f23a1d3cb7ca1b8d37 (diff)
Call MaybeBindToTemporary when constructing functino call operator calls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r--lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp
index 2b507fb303..d4187f2ce1 100644
--- a/lib/Sema/SemaOverload.cpp
+++ b/lib/Sema/SemaOverload.cpp
@@ -4555,7 +4555,7 @@ Sema::BuildCallToObjectOfClassType(Scope *S, Expr *Object,
if (CheckFunctionCall(Method, TheCall.get()))
return true;
- return TheCall.release();
+ return MaybeBindToTemporary(TheCall.release()).release();
}
/// BuildOverloadedArrowExpr - Build a call to an overloaded @c operator->