Browse Source

Fixed a possible crash when getting a declaration from a type.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/719/head
Dimitar Dobrev 9 years ago
parent
commit
99f6dcac7b
  1. 2
      src/AST/TypeExtensions.cs

2
src/AST/TypeExtensions.cs

@ -148,7 +148,7 @@
if (templateTemplateParameter != null) if (templateTemplateParameter != null)
return (decl = templateTemplateParameter.TemplatedDecl as T) != null; return (decl = templateTemplateParameter.TemplatedDecl as T) != null;
} }
tagType = (TagType) (type.Desugared.Type.GetFinalPointee() ?? type.Desugared.Type); tagType = (type.Desugared.Type.GetFinalPointee() ?? type.Desugared.Type) as TagType;
} }
else else
{ {

Loading…
Cancel
Save