aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2021-12-20 18:01:33 +0100
committerSam McCall <sam.mccall@gmail.com>2021-12-20 18:03:15 +0100
commitaf27466c50398e3f04372850370eab8dc8abbb92 (patch)
treec70bb4b9bbc0ef1f18423dcfbfb69f54980fe211 /clang/lib/CodeGen/CodeGenFunction.cpp
parentcc56c66f27e131b914082d3bd21180646e842e9a (diff)
downloadllvm-af27466c50398e3f04372850370eab8dc8abbb92.zip
llvm-af27466c50398e3f04372850370eab8dc8abbb92.tar.gz
llvm-af27466c50398e3f04372850370eab8dc8abbb92.tar.bz2
Reland "[AST] Add UsingType: a sugar type for types found via UsingDecl"
This reverts commit cc56c66f27e131b914082d3bd21180646e842e9a. Fixed a bad assertion, the target of a UsingShadowDecl must not have *local* qualifiers, but it can be a typedef whose underlying type is qualified.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 4c488bc..702495df 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2199,6 +2199,7 @@ void CodeGenFunction::EmitVariablyModifiedType(QualType type) {
case Type::Record:
case Type::Enum:
case Type::Elaborated:
+ case Type::Using:
case Type::TemplateSpecialization:
case Type::ObjCTypeParam:
case Type::ObjCObject: