[PATCH] D124431: [InlineAsm] Add missing constraint A to getMemConstraintName

Jim Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 22:13:51 PDT 2022


Jim created this revision.
Herald added a subscriber: dexonsmith.
Herald added a project: All.
Jim requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Constraint A was added from https://reviews.llvm.org/D54296.

Clang will crash with option `-mllvm --debug` due to lack of constraint name for constraint A.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124431

Files:
  llvm/include/llvm/IR/InlineAsm.h


Index: llvm/include/llvm/IR/InlineAsm.h
===================================================================
--- llvm/include/llvm/IR/InlineAsm.h
+++ llvm/include/llvm/IR/InlineAsm.h
@@ -434,6 +434,8 @@
       return "o";
     case InlineAsm::Constraint_v:
       return "v";
+    case InlineAsm::Constraint_A:
+      return "A";
     case InlineAsm::Constraint_Q:
       return "Q";
     case InlineAsm::Constraint_R:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124431.425118.patch
Type: text/x-patch
Size: 418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220426/2dcbc1e1/attachment.bin>


More information about the llvm-commits mailing list