summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorEugene Leviant <eleviant@accesssoftek.com>2019-06-14 13:45:21 +0000
committerEugene Leviant <eleviant@accesssoftek.com>2019-06-14 13:45:21 +0000
commitc74910b842d319a8acc5ffd69d88eb8988bdf5da (patch)
tree95381f99753bff926721fe0c95e8d113badbd138 /llvm/lib/Support
parente5a78cd90f2b139ff5d0bccd8015d99913302fd8 (diff)
downloadbcm5719-llvm-c74910b842d319a8acc5ffd69d88eb8988bdf5da.tar.gz
bcm5719-llvm-c74910b842d319a8acc5ffd69d88eb8988bdf5da.zip
Fix failing test on ARM buildbot
r363261 caused test failure on 32-bit ARM buildbot, because of unsigned integer overflow. This patch fixes it changing offset type from size_t to uint64_t. llvm-svn: 363393
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/ARMAttributeParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/ARMAttributeParser.cpp b/llvm/lib/Support/ARMAttributeParser.cpp
index 65ee51f1319..df50fff720c 100644
--- a/llvm/lib/Support/ARMAttributeParser.cpp
+++ b/llvm/lib/Support/ARMAttributeParser.cpp
@@ -696,7 +696,7 @@ void ARMAttributeParser::ParseSubsection(const uint8_t *Data, uint32_t Length) {
}
void ARMAttributeParser::Parse(ArrayRef<uint8_t> Section, bool isLittle) {
- size_t Offset = 1;
+ uint64_t Offset = 1;
unsigned SectionNumber = 0;
while (Offset < Section.size()) {
OpenPOWER on IntegriCloud