[llvm] [AVR] Force relocations for non-encodable jumps (PR #121498)

Patryk Wychowaniec via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 01:11:01 PST 2025


================
@@ -45,12 +49,18 @@ static void signed_width(unsigned Width, uint64_t Value,
 
     Ctx->reportError(Fixup.getLoc(), Diagnostic);
   }
+
+  return false;
 }
 
-static void unsigned_width(unsigned Width, uint64_t Value,
-                           std::string Description, const MCFixup &Fixup,
-                           MCContext *Ctx) {
-  if (!isUIntN(Width, Value)) {
+static bool checkUnsignedWidth(unsigned Width, uint64_t Value,
+                               std::string Description, const MCFixup &Fixup,
----------------
Patryk27 wrote:

Ah, I've adjusted the the inner code to use `Twine`s, but forgot about the parameter - changed.

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


More information about the llvm-commits mailing list