aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-01-08 14:45:19 +0100
committerGitHub <noreply@github.com>2025-01-08 14:45:19 +0100
commit81fc3add1e627c23b7270fe2739cdacc09063e54 (patch)
treeede826f9137b2cd824b70eb756a4b1041acf26cc /clang/lib/CodeGen/ModuleBuilder.cpp
parent72a28a3bf0b539bcdfd8f41905675ce6a890c0ac (diff)
downloadllvm-81fc3add1e627c23b7270fe2739cdacc09063e54.zip
llvm-81fc3add1e627c23b7270fe2739cdacc09063e54.tar.gz
llvm-81fc3add1e627c23b7270fe2739cdacc09063e54.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions