[lld] Fix warning in lld/Macho while building lld for wasm (PR #120889)

Anutosh Bhat via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 22 04:29:17 PST 2024


================
@@ -2084,7 +2084,7 @@ void ObjCMethListSection::writeTo(uint8_t *bufStart) const {
     uint32_t writtenSize = writeRelativeMethodList(isec, buf);
     buf += writtenSize;
   }
-  assert(buf - bufStart == sectionSize &&
+  assert(buf - bufStart == long(sectionSize) &&
----------------
anutosh491 wrote:

Thanks for the review @carlocab 
I have applied the above suggestion. It does make sense to use it in place of `long`

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


More information about the llvm-commits mailing list