aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-07-14 21:13:57 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2022-07-14 21:17:48 -0700
commit888673b6e3bf0182fb5f154eb3231c9ae022acca (patch)
tree5920eb6c26de7d1f48fd76a4d33c0dd36c163f3f /clang/lib/CodeGen/CodeGenFunction.cpp
parentef0081d608298db65371f9869c1371fcfc74a778 (diff)
downloadllvm-888673b6e3bf0182fb5f154eb3231c9ae022acca.zip
llvm-888673b6e3bf0182fb5f154eb3231c9ae022acca.tar.gz
llvm-888673b6e3bf0182fb5f154eb3231c9ae022acca.tar.bz2
Revert "[clang] Implement ElaboratedType sugaring for types written bare"
This reverts commit 7c51f02effdbd0d5e12bfd26f9c3b2ab5687c93f because it stills breaks the LLDB tests. This was re-landed without addressing the issue or even agreement on how to address the issue. More details and discussion in https://reviews.llvm.org/D112374.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index d2f2515..5012bd8 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2214,6 +2214,7 @@ void CodeGenFunction::EmitVariablyModifiedType(QualType type) {
case Type::ConstantMatrix:
case Type::Record:
case Type::Enum:
+ case Type::Elaborated:
case Type::Using:
case Type::TemplateSpecialization:
case Type::ObjCTypeParam:
@@ -2223,10 +2224,6 @@ void CodeGenFunction::EmitVariablyModifiedType(QualType type) {
case Type::BitInt:
llvm_unreachable("type class is never variably-modified!");
- case Type::Elaborated:
- type = cast<ElaboratedType>(ty)->getNamedType();
- break;
-
case Type::Adjusted:
type = cast<AdjustedType>(ty)->getAdjustedType();
break;