llvm-project
81fc3add - [clang] Avoid re-evaluating field bitwidth (#117732)

Commit
265 days ago
[clang] Avoid re-evaluating field bitwidth (#117732) Save the bitwidth value as a `ConstantExpr` with the value set. Remove the `ASTContext` parameter from `getBitWidthValue()`, so the latter simply returns the value from the `ConstantExpr` instead of constant-evaluating the bitwidth expression every time it is called.
Author
Parents
Loading