diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-11-21 12:47:43 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-11-21 12:47:43 +0000 |
commit | 9f0246d47390775ec3bf2c2b7e4ded3d26193468 (patch) | |
tree | b04d1324ec67a7b17d8824779c13deb94dac2812 /clang/lib/Sema/SemaOverload.cpp | |
parent | 4923930be5367488be818168916ad94dc878bb59 (diff) | |
download | bcm5719-llvm-9f0246d47390775ec3bf2c2b7e4ded3d26193468.tar.gz bcm5719-llvm-9f0246d47390775ec3bf2c2b7e4ded3d26193468.zip |
Revert r347364 again, the fix was incomplete.
llvm-svn: 347389
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 2 |
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()); } } |