[lld] r249765 - Use uintX_t instead of unsigned int to fix potential cross-linking issue.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 15:43:56 PDT 2015


Author: ruiu
Date: Thu Oct  8 17:43:55 2015
New Revision: 249765

URL: http://llvm.org/viewvc/llvm-project?rev=249765&view=rev
Log:
Use uintX_t instead of unsigned int to fix potential cross-linking issue.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=249765&r1=249764&r2=249765&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Oct  8 17:43:55 2015
@@ -91,7 +91,7 @@ private:
     return !Symtab.getSharedFiles().empty() || Config->Shared;
   }
   bool needsDynamicSections() const { return isOutputDynamic(); }
-  unsigned getVAStart() const { return Config->Shared ? 0 : Target->getVAStart(); }
+  uintX_t getVAStart() const { return Config->Shared ? 0 : Target->getVAStart(); }
 
   std::unique_ptr<llvm::FileOutputBuffer> Buffer;
 




More information about the llvm-commits mailing list