diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-16 14:09:38 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-11-16 14:55:33 +0100 |
commit | 2468fb2baf502159558e83a9457d5d74f793c6fb (patch) | |
tree | d949350b0da2742faf9863c19b25e1226af80baa /libbindgen/src | |
parent | 9380ed5a917b92858cc61b38ec2e300ab08a2337 (diff) |
ir: context: fall back to use the declaration as a key when there's no USR.
Apparently MSVC isn't that good at giving us USRs...
Fixes #271
Diffstat (limited to 'libbindgen/src')
-rw-r--r-- | libbindgen/src/ir/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbindgen/src/ir/context.rs b/libbindgen/src/ir/context.rs index a1ec8c70..bda3e3c8 100644 --- a/libbindgen/src/ir/context.rs +++ b/libbindgen/src/ir/context.rs @@ -222,7 +222,7 @@ impl<'ctx> BindgenContext<'ctx> { error!("Valid declaration with no USR: {:?}, {:?}", declaration, location); - return; + TypeKey::Declaration(declaration) }; let old = self.types.insert(key, id); |