[llvm] Mark assert-only variable from 17a17fa maybe_unused. (PR #177602)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 23 07:41:58 PST 2026


================
@@ -726,7 +726,7 @@ PredicateInfo::PredicateInfo(Function &F, DominatorTree &DT,
 std::optional<PredicateConstraint> PredicateBase::getConstraint() const {
   switch (Type) {
   case PT_BundleAssume: {
-    auto *BA = cast<PredicateBundleAssume>(this);
+    [[maybe_unused]] auto *BA = cast<PredicateBundleAssume>(this);
----------------
boomanaiden154 wrote:

Given there is a single user here, we should probably just inline this into the assertion.

https://github.com/llvm/llvm-project/pull/177602


More information about the llvm-commits mailing list