summaryrefslogtreecommitdiff
path: root/src/ir/enum_ty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/enum_ty.rs')
-rw-r--r--src/ir/enum_ty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/enum_ty.rs b/src/ir/enum_ty.rs
index 3470e033..d2385a29 100644
--- a/src/ir/enum_ty.rs
+++ b/src/ir/enum_ty.rs
@@ -60,7 +60,7 @@ impl Enum {
let declaration = ty.declaration().canonical();
let repr = declaration.enum_type()
- .and_then(|et| Item::from_ty(&et, None, None, ctx).ok());
+ .and_then(|et| Item::from_ty(&et, declaration, None, ctx).ok());
let mut variants = vec![];
// Assume signedness since the default type by the C standard is an int.
@@ -99,7 +99,7 @@ impl Enum {
Annotations::new(&cursor)
.and_then(|anno| if anno.hide() {
Some(EnumVariantCustomBehavior::Hide)
- } else if
+ } else if
anno.constify_enum_variant() {
Some(EnumVariantCustomBehavior::Constify)
} else {