[llvm] c22d18b - Read NumBlocks as uint64_t.
Rahman Lavaee via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 8 16:48:06 PST 2021
Author: Rahman Lavaee
Date: 2021-03-08T16:46:13-08:00
New Revision: c22d18b7e81e6b543f549980d3328ab9a18a9c34
URL: https://github.com/llvm/llvm-project/commit/c22d18b7e81e6b543f549980d3328ab9a18a9c34
DIFF: https://github.com/llvm/llvm-project/commit/c22d18b7e81e6b543f549980d3328ab9a18a9c34.diff
LOG: Read NumBlocks as uint64_t.
This fixes the Buildbot failure happened due to a sloppy merge.
Added:
Modified:
llvm/lib/ObjectYAML/ELFEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp
index 242b87c0d1d0..b77c36dde9de 100644
--- a/llvm/lib/ObjectYAML/ELFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp
@@ -1360,7 +1360,7 @@ void ELFState<ELFT>::writeSectionContent(
CBA.write<uintX_t>(E.Address, ELFT::TargetEndianness);
// Write number of BBEntries (number of basic blocks in the function). This
// is overridden by the 'NumBlocks' YAML field when specified.
- uint32_t NumBlocks =
+ uint64_t NumBlocks =
E.NumBlocks.getValueOr(E.BBEntries ? E.BBEntries->size() : 0);
SHeader.sh_size += sizeof(uintX_t) + CBA.writeULEB128(NumBlocks);
// Write all BBEntries.
More information about the llvm-commits
mailing list