[llvm] [LLVM] Add 'maybe_unused' to variable only used in asserts. (PR #177632)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 23 10:29:10 PST 2026
================
@@ -1225,7 +1225,7 @@ struct DSEState {
auto IBounded = InvisibleToCallerAfterRetBounded.find(V);
if (IBounded != InvisibleToCallerAfterRetBounded.end()) {
int64_t ValueOffset;
- const Value *BaseValue =
+ [[maybe_unused]] const Value *BaseValue =
----------------
boomanaiden154 wrote:
The variable definition.
e.g.
```c++
assert(GetPointerBaseWithConstantOffset(Ptr, ValueOffset, DL) == V);
```
https://github.com/llvm/llvm-project/pull/177632
More information about the llvm-commits
mailing list