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

YunQiang Su via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 16:35:51 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.
----------------
wzssyqa wrote:

It is not `global` variable, instead it is a class level variable.

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


More information about the llvm-commits mailing list