Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang] Fix pretty-printing assume_aligned attributes (#67331)
Inside `writePrettyPrintFunction()`, we check if we need to emit the given argument: ```C++ if (!arg->isOptional() || arg->getIsOmitted() == "false") { FoundNonOptArg = true; continue; } ``` For the `AssumeAligned` attribute, the second argument was optional, but the `getIsOmitted()` returned `false`, thus we treated this argument as **non-optional** in the end because of that disjunction. It was because `getIsOmitted()` did not account for `Expr *` type, and returned `false` on the fallthrough branch. Fixes #67156
- Loading branch information