[PATCH] D153096: [MC] Fold A-B when A's fragment precedes B's fragment

NAKAMURA Takumi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 14:14:53 PDT 2023


chapuni added inline comments.


================
Comment at: llvm/lib/MC/MCExpr.cpp:696
+    // flushPendingLabels)). In either case, we can resolve the difference.
+    assert(Found || isa<MCDummyFragment>(FA));
+    Addend += Reverse ? -Displacement : Displacement;
----------------
`Found` has become unused in -Asserts.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153096/new/

https://reviews.llvm.org/D153096



More information about the llvm-commits mailing list