aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorAlan Zhao <ayzhao@google.com>2023-01-04 14:54:55 -0800
committerAlan Zhao <ayzhao@google.com>2023-01-04 15:09:36 -0800
commit4e02ff2303f8a69cc2459b77bbb879b248df6ca9 (patch)
tree9079c5c43a22c4c1fb4a6c52ac8a198cfe7c0f45 /clang/lib/Frontend/InitPreprocessor.cpp
parent45f347270caffafe48146c6c7ed8301d91e492ad (diff)
downloadllvm-4e02ff2303f8a69cc2459b77bbb879b248df6ca9.zip
llvm-4e02ff2303f8a69cc2459b77bbb879b248df6ca9.tar.gz
llvm-4e02ff2303f8a69cc2459b77bbb879b248df6ca9.tar.bz2
[clang] Revert parentesized aggregate initalization patches
This feature causes clang to crash when compiling Chrome - see https://crbug.com/1405031 and https://github.com/llvm/llvm-project/issues/59675 Revert "[clang] Fix a clang crash on invalid code in C++20 mode." This reverts commit 32d7aae04fdb58e65a952f281ff2f2c3f396d98f. Revert "[clang] Remove overly restrictive aggregate paren init logic" This reverts commit c77a91bb7ba793ec3a6a5da3743ed55056291658. Revert "[clang][C++20] P0960R3 and P1975R0: Allow initializing aggregates from a parenthesized list of values" This reverts commit 40c52159d3ee337dbed14e4c73b5616ea354c337.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 208c6a8..3e33d93 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -674,7 +674,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
// C++20 features.
if (LangOpts.CPlusPlus20) {
- Builder.defineMacro("__cpp_aggregate_paren_init", "201902L");
+ // Builder.defineMacro("__cpp_aggregate_paren_init", "201902L");
// P0848 is implemented, but we're still waiting for other concepts
// issues to be addressed before bumping __cpp_concepts up to 202002L.