Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't crash on empty function/enum bodies (#3281)
In some cases, `FunctionDecl::hasBody` (and presumably `EnumDecl::hasBody`, though I don't have a crasher for that) will report `true` when `FunctionDecl::getBody` would return null. Prefer using `getBody` to check whether a decl has a body.
- Loading branch information