diff options
Diffstat (limited to 'src/ir/layout.rs')
-rw-r--r-- | src/ir/layout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/layout.rs b/src/ir/layout.rs index c34da0e1..c70d2884 100644 --- a/src/ir/layout.rs +++ b/src/ir/layout.rs @@ -100,8 +100,8 @@ pub struct Opaque(pub Layout); impl Opaque { /// Construct a new opaque type from the given clang type. - pub fn from_clang_ty(ty: &clang::Type) -> Type { - let layout = Layout::new(ty.size(), ty.align()); + pub fn from_clang_ty(ty: &clang::Type, ctx: &BindgenContext) -> Type { + let layout = Layout::new(ty.size(ctx), ty.align(ctx)); let ty_kind = TypeKind::Opaque; let is_const = ty.is_const(); Type::new(None, Some(layout), ty_kind, is_const) |