summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-11-20 15:27:43 +0000
committerNico Weber <nicolasweber@gmx.de>2018-11-20 15:27:43 +0000
commit6438972553fa8f5c9d584d21028639c5cd665f8c (patch)
treeeca3d7889246c59ec975151d7690dd10c2b1ac53 /clang/lib/Sema/SemaOverload.cpp
parent37351059618bf1a911d9d555273bcf7be0f570b7 (diff)
downloadbcm5719-llvm-6438972553fa8f5c9d584d21028639c5cd665f8c.tar.gz
bcm5719-llvm-6438972553fa8f5c9d584d21028639c5cd665f8c.zip
Revert 347294, it turned many bots on lab.llvm.org:8011/console red.
llvm-svn: 347314
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r--clang/lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index f36668f7614..ba4b67a23d4 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -5469,7 +5469,7 @@ static ExprResult CheckConvertedConstantExpression(Sema &S, Expr *From,
if (Notes.empty()) {
// It's a constant expression.
- return ConstantExpr::Create(S.Context, Result.get());
+ return new (S.Context) ConstantExpr(Result.get());
}
}
OpenPOWER on IntegriCloud