This fixes PR20883.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/Sema/SemaDecl.cpp | ||
|---|---|---|
| 10429 | Hmm, it feels like there could be other statements which don't have any children but are not a NullStmt. Might be safer to just check for NullStmt explicitly. | |
Comment Actions
LGTM, thanks for fixing!
| test/Sema/attr-naked.c | ||
|---|---|---|
| 27 | Maybe add a t7 that has the actual case from the PR, i.e. both an asm and null statement. | |
Hmm, it feels like there could be other statements which don't have any children but are not a NullStmt. Might be safer to just check for NullStmt explicitly.