diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-01-31 20:58:15 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-01-31 20:58:15 +0000 |
commit | 6997aae42800d95a1189a6186af438feb19ecc54 (patch) | |
tree | fab0a7b21c1d2cde497901bc8ff29c361545ed5f /lib/CodeGen/CGExprCXX.cpp | |
parent | 3bb9412788e04755cb509ec576f41afbed4efdd3 (diff) |
Switch expressions like T() and T(1,2) over to new-style initialization. I'm
not quite sure what we want to do about the AST representation; comments
welcome.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp index d7e6dbfa36..4253d18c39 100644 --- a/lib/CodeGen/CGExprCXX.cpp +++ b/lib/CodeGen/CGExprCXX.cpp @@ -60,7 +60,7 @@ static bool canDevirtualizeMemberFunctionCalls(const Expr *Base) { } // We can always devirtualize calls on temporary object expressions. - if (isa<CXXTemporaryObjectExpr>(Base)) + if (isa<CXXConstructExpr>(Base)) return true; // And calls on bound temporaries. |