aboutsummaryrefslogtreecommitdiff
path: root/src/parseh.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-13 23:03:59 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-13 23:03:59 -0700
commitfb8700de6cd4bb9cd8060112e2c0b4077448b5bd (patch)
tree359c822c139f645fb441f6d89a1c8b1989d3ccb2 /src/parseh.cpp
parent5032854aec2a0afb9c272d2c26c409d7bfe48661 (diff)
downloadzig-fb8700de6cd4bb9cd8060112e2c0b4077448b5bd.tar.gz
zig-fb8700de6cd4bb9cd8060112e2c0b4077448b5bd.zip
parseh: support attributed types
Diffstat (limited to 'src/parseh.cpp')
-rw-r--r--src/parseh.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/parseh.cpp b/src/parseh.cpp
index 02c0d6b6d1..3aa2d3f128 100644
--- a/src/parseh.cpp
+++ b/src/parseh.cpp
@@ -593,6 +593,11 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const
const DecayedType *decayed_ty = static_cast<const DecayedType *>(ty);
return resolve_qual_type(c, decayed_ty->getDecayedType(), decl);
}
+ case Type::Attributed:
+ {
+ const AttributedType *attributed_ty = static_cast<const AttributedType *>(ty);
+ return resolve_qual_type(c, attributed_ty->getEquivalentType(), decl);
+ }
case Type::BlockPointer:
case Type::LValueReference:
case Type::RValueReference:
@@ -610,7 +615,6 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const
case Type::TypeOf:
case Type::Decltype:
case Type::UnaryTransform:
- case Type::Attributed:
case Type::TemplateTypeParm:
case Type::SubstTemplateTypeParm:
case Type::SubstTemplateTypeParmPack: