[lld] r303976 - [ELF] - Follow up for r303975. NFCi.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 05:16:40 PDT 2017
Author: grimar
Date: Fri May 26 07:16:39 2017
New Revision: 303976
URL: http://llvm.org/viewvc/llvm-project?rev=303976&view=rev
Log:
[ELF] - Follow up for r303975. NFCi.
Restore bitwise-or order and fix warning
(was changed by mistake during resolve of conflicts).
Modified:
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=303976&r1=303975&r2=303976&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Fri May 26 07:16:39 2017
@@ -1781,7 +1781,7 @@ void GdbIndexSection::readDwarf(InputSec
CuVectors.push_back({});
}
- CuVectors[Sym->CuVectorIndex].insert(CuId | (Pair.second << 24));
+ CuVectors[Sym->CuVectorIndex].insert((Pair.second << 24) | (uint32_t)CuId);
}
}
More information about the llvm-commits
mailing list