diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-05-21 06:23:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-21 06:23:37 -0700 |
commit | fb627e39e28ab5f72a90d00e60d2e80ff8482c6f (patch) | |
tree | 47eb4c522c58e7be396e94e4321d3c218cd35758 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | b5e3d8ec084d94265b0edc58b82f57597abe645b (diff) | |
download | llvm-fb627e39e28ab5f72a90d00e60d2e80ff8482c6f.zip llvm-fb627e39e28ab5f72a90d00e60d2e80ff8482c6f.tar.gz llvm-fb627e39e28ab5f72a90d00e60d2e80ff8482c6f.tar.bz2 |
[LLVM][IR] Replace `unsigned >= ConstantDataFirstVal` with static_assert (#140827)
`ConstantDataFirstVal` is 0, so `getValueID() >= ConstantDataFirstVal`
leads to a compiler warning that the expression is always true. Replace
such comparisons with a static_assert() to verify that
`ConstantDataFirstVal` is 0, similar to the existing code in Value.h
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions