[clang] [Clang] Warn on unused inline asm operands (PR #220577)

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 2 05:47:28 PDT 2026


================
@@ -10181,6 +10181,9 @@ let CategoryName = "Inline Assembly Issue" in {
     "value size does not match register size specified by the constraint "
     "and modifier">,
     InGroup<ASMOperandWidths>;
+  def warn_unused_asm_operand : Warning<
+    "unused asm %select{output|input}0 operand">,
----------------
bwendling wrote:

Good call, thanks -- switched to enum_select in 81327b682ba2.

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


More information about the cfe-commits mailing list