Use UINT64_MAX instead of implicitly-type-converted -1.

llvm-svn: 314126
This commit is contained in:
Rui Ueyama 2017-09-25 17:40:21 +00:00
parent f0093e45c4
commit 761f0b660d
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ void LinkerScript::processCommands(OutputSectionFactory &Factory) {
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