[llvm] [ARMAsmBackend] Add checks for relocation addends in assembler (PR #109969)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 01:48:09 PDT 2024


================
@@ -1121,7 +1132,7 @@ void ARMAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
   assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!");
 
   // Used to point to big endian bytes.
-  unsigned FullSizeBytes;
+  unsigned FullSizeBytes = 0;
----------------
jcohen-apple wrote:

No, not necessary. I was modifying this code for something unrelated this snuck in, I'll just remove it.

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


More information about the llvm-commits mailing list