[PATCH] D62227: [RuntimeDyld] fix too-small-bitmask error

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 21:49:46 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL362286: [RuntimeDyld] fix too-small-bitmask error (authored by nickdesaulniers, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D62227?vs=202530&id=202533#toc

Repository:
  rL LLVM

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

https://reviews.llvm.org/D62227

Files:
  llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp


Index: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
===================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -842,7 +842,7 @@
       // Align DataSize to stub alignment if we have any stubs (PaddingSize will
       // have been increased above to account for this).
       if (StubBufSize > 0)
-        DataSize &= ~(getStubAlignment() - 1);
+        DataSize &= -(uint64_t)getStubAlignment();
     }
 
     LLVM_DEBUG(dbgs() << "emitSection SectionID: " << SectionID << " Name: "


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62227.202533.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190601/94f6d127/attachment.bin>


More information about the llvm-commits mailing list