commit | 54ad8a013896f07560d335ce56536521f5a9794b | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun Aug 16 03:06:32 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun Aug 16 03:06:32 2009 +0000 |
tree | 46fe3118688af7b3d2775a3471557fddb09e7cf8 | |
parent | 44196762702e0ba2950d61d314fa5ef01f7aa879 [diff] [blame] |
Make sure to call MaybeBindToTemporary when creating CallExprs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79168 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 5f1467c..ef172e5 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp
@@ -2942,7 +2942,7 @@ return ExprError(); } - return Owned(TheCall.take()); + return MaybeBindToTemporary(TheCall.take()); } Action::OwningExprResult