[lld] r314126 - Use UINT64_MAX instead of implicitly-type-converted -1.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 10:40:21 PDT 2017
Author: ruiu
Date: Mon Sep 25 10:40:21 2017
New Revision: 314126
URL: http://llvm.org/viewvc/llvm-project?rev=314126&view=rev
Log:
Use UINT64_MAX instead of implicitly-type-converted -1.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=314126&r1=314125&r2=314126&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Mon Sep 25 10:40:21 2017
@@ -428,7 +428,7 @@ void LinkerScript::processCommands(Outpu
void LinkerScript::fabricateDefaultCommands() {
// Define start address
- uint64_t StartAddr = -1;
+ uint64_t StartAddr = UINT64_MAX;
// The Sections with -T<section> have been sorted in order of ascending
// address. We must lower StartAddr if the lowest -T<section address> as
More information about the llvm-commits
mailing list