[all-commits] [llvm/llvm-project] fb627e: [LLVM][IR] Replace `unsigned >= ConstantDataFirstV...
Rahul Joshi via All-commits
all-commits at lists.llvm.org
Wed May 21 06:24:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb627e39e28ab5f72a90d00e60d2e80ff8482c6f
https://github.com/llvm/llvm-project/commit/fb627e39e28ab5f72a90d00e60d2e80ff8482c6f
Author: Rahul Joshi <rjoshi at nvidia.com>
Date: 2025-05-21 (Wed, 21 May 2025)
Changed paths:
M llvm/include/llvm/IR/Constants.h
M llvm/include/llvm/IR/Value.h
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list