[lld] [llvm] [Mips] Fix unable to handle inline assembly ends with compat-branch o… (PR #77291)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 18:24:23 PST 2024


================
@@ -2307,7 +2319,42 @@ bool MipsAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc,
 
   bool FillDelaySlot =
       MCID.hasDelaySlot() && AssemblerOptions.back()->isReorder();
-  if (FillDelaySlot)
+
+  // Get previous instruction`s forbidden slot attribute and
+  // whether set reorder.
+  // This 'CurForbiddenSlotAttr' is a global variable.
----------------
yingopq wrote:

OK, I would modify these comments.

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


More information about the llvm-commits mailing list