Browse Source

Check for null declarations in Desugar().

pull/1/head
triton 13 years ago
parent
commit
3e5990275d
  1. 9
      src/Bridge/Type.cs

9
src/Bridge/Type.cs

@ -100,8 +100,15 @@ namespace Cxxi
public Type Desugar() public Type Desugar()
{ {
var type = this as TypedefType; var type = this as TypedefType;
if (type != null) if (type != null)
return type.Declaration.QualifiedType.Type.Desugar(); {
var decl = type.Declaration.Type;
if (decl != null)
return decl.Desugar();
}
return this; return this;
} }

Loading…
Cancel
Save