[llvm] Obviously Redundant Assert In AsmWriter (PR #128543)
JP Hafer via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 09:47:20 PST 2025
https://github.com/jph-13 updated https://github.com/llvm/llvm-project/pull/128543
>From d13791bdc01b2f2a870a8196e6b5c6b5788157c6 Mon Sep 17 00:00:00 2001
From: Jason Hafer <jhafer at mathworks.com>
Date: Mon, 24 Feb 2025 12:57:04 -0500
Subject: [PATCH] Remove redundant assert from AsmWriter
---
llvm/lib/IR/AsmWriter.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 57e9cccdc0fb6..233b16f7f6856 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -2109,7 +2109,6 @@ static void writeDIGenericSubrange(raw_ostream &Out, const DIGenericSubrange *N,
};
auto GetConstant = [&](Metadata *Bound) -> int64_t {
- assert(IsConstant(Bound) && "Expected constant");
auto *BE = dyn_cast_or_null<DIExpression>(Bound);
return static_cast<int64_t>(BE->getElement(1));
};
More information about the llvm-commits
mailing list