aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2022-04-16 00:18:48 -0700
committerVitaly Buka <vitalybuka@google.com>2022-04-16 00:27:51 -0700
commite75d8b70370435b0ad10388afba0df45fcf9bfcc (patch)
tree5a0fd5f08c473f85aa87e4b38e83a9418d993eea /clang/lib/Sema/SemaInit.cpp
parent709868707ca76002f3dc858e2300d3ca13eaf409 (diff)
downloadllvm-e75d8b70370435b0ad10388afba0df45fcf9bfcc.zip
llvm-e75d8b70370435b0ad10388afba0df45fcf9bfcc.tar.gz
llvm-e75d8b70370435b0ad10388afba0df45fcf9bfcc.tar.bz2
Revert "Treat `std::move`, `forward`, and `move_if_noexcept` as builtins."
Revert "Extend support for std::move etc to also cover std::as_const and" Revert "Update test to handle opaque pointers flag flip." It crashes on libcxx tests https://lab.llvm.org/buildbot/#/builders/85/builds/8174 This reverts commit fc3090109643af8d2da9822d0f99c84742b9c877. This reverts commit a571f82a50416b767fd3cce0fb5027bb5dfec58c. This reverts commit 64c045e25b8471bbb572bd29159c294a82a86a25.
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index f76fd92d..233be54 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -8215,10 +8215,6 @@ ExprResult InitializationSequence::Perform(Sema &S,
CurInit = S.FixOverloadedFunctionReference(CurInit,
Step->Function.FoundDecl,
Step->Function.Function);
- // We might get back another placeholder expression if we resolved to a
- // builtin.
- if (!CurInit.isInvalid())
- CurInit = S.CheckPlaceholderExpr(CurInit.get());
break;
case SK_CastDerivedToBasePRValue: