diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-01-19 11:41:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 11:41:51 -0600 |
commit | d3d69c6d33bd22b7edee560d59dab8946911cc0e (patch) | |
tree | e3fb0f1d132e107e7905f4b1689872e34dd73adb | |
parent | 13f2b9a22c73facb7f7029a4ee806e57097e3f76 (diff) | |
parent | ea603ce59a26b21e15850c6d6024ebd74c4bde3a (diff) |
Auto merge of #1227 - emilio:non-floating-type-complex, r=fitzgen
ir: Handle _Complex _Float128 correctly.
Unfortunately we can't test it for the same alignment issues that "long double"
has.
I also included the diagnostic code, just in case it happens again.
-rw-r--r-- | src/ir/context.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs index 258c6a0c..1be14a5f 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -1970,7 +1970,14 @@ impl BindgenContext { CXType_Float => FloatKind::Float, CXType_Double => FloatKind::Double, CXType_LongDouble => FloatKind::LongDouble, - _ => panic!("Non floating-type complex?"), + CXType_Float128 => FloatKind::Float128, + _ => { + panic!( + "Non floating-type complex? {:?}, {:?}", + ty, + float_type, + ) + }, }; TypeKind::Complex(float_kind) } |