diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-11-20 15:27:43 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-11-20 15:27:43 +0000 |
commit | 20e1e29affefae82cbd2fd0c0306ce904ab87c33 (patch) | |
tree | 140b49687ab5ec83b01ea70b4779e784794fcbf7 /lib/Sema/SemaOverload.cpp | |
parent | 12aa868ef2be61b82395dda923c0afeba8aa6ebf (diff) | |
download | clang-20e1e29affefae82cbd2fd0c0306ce904ab87c33.tar.gz |
Revert 347294, it turned many bots on lab.llvm.org:8011/console red.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index f36668f761..ba4b67a23d 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/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()); } } |