Fix R unions seg fault
Started seg faulting since nested branch merge
This commit is contained in:
parent
66ebb2a7cb
commit
a1c17d585d
1 changed files with 1 additions and 1 deletions
|
|
@ -2299,7 +2299,7 @@ int R::classDeclaration(Node *n) {
|
||||||
|
|
||||||
/* If we have a typedef union { ... } U, then we never get to see the typedef
|
/* If we have a typedef union { ... } U, then we never get to see the typedef
|
||||||
via a regular call to typedefHandler. Instead, */
|
via a regular call to typedefHandler. Instead, */
|
||||||
if(Getattr(n, "unnamed") && Strcmp(Getattr(n, "storage"), "typedef") == 0
|
if(Getattr(n, "unnamed") && Getattr(n, "storage") && Strcmp(Getattr(n, "storage"), "typedef") == 0
|
||||||
&& Getattr(n, "tdname") && Strcmp(Getattr(n, "tdname"), name) == 0) {
|
&& Getattr(n, "tdname") && Strcmp(Getattr(n, "tdname"), name) == 0) {
|
||||||
if (debugMode)
|
if (debugMode)
|
||||||
Printf(stdout, "Typedef in the class declaration for %s\n", name);
|
Printf(stdout, "Typedef in the class declaration for %s\n", name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue