Skip to content

Commit 9df15c1

Browse files
committed
ir: Give more info for the non-floating type complex type message.
1 parent 2b81788 commit 9df15c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ir/context.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,13 @@ impl BindgenContext {
19701970
CXType_Float => FloatKind::Float,
19711971
CXType_Double => FloatKind::Double,
19721972
CXType_LongDouble => FloatKind::LongDouble,
1973-
_ => panic!("Non floating-type complex?"),
1973+
_ => {
1974+
panic!(
1975+
"Non floating-type complex? {:?}, {:?}",
1976+
ty,
1977+
float_type,
1978+
)
1979+
},
19741980
};
19751981
TypeKind::Complex(float_kind)
19761982
}

0 commit comments

Comments
 (0)