summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2017-10-17 20:43:33 +0000
committerJessica Paquette <jpaquette@apple.com>2017-10-17 20:43:33 +0000
commit1a81dfba97c5b50d6969bfe55c1f7c42e9d6db9e (patch)
tree4190882e1ec7f7bdf930106dbff4b5ffa4af2cf7 /llvm/lib/Object/MachOObjectFile.cpp
parent35713eba567eb38c99a3fd85ac89747d1524c62c (diff)
downloadbcm5719-llvm-1a81dfba97c5b50d6969bfe55c1f7c42e9d6db9e.tar.gz
bcm5719-llvm-1a81dfba97c5b50d6969bfe55c1f7c42e9d6db9e.zip
Fix typo in checkTwoLevelHintsCommand
BigSize had a copy/paste typo in it. This fixes that. llvm-svn: 316027
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 7b4be973a09..8ac96919719 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -1115,7 +1115,7 @@ static Error checkTwoLevelHintsCommand(const MachOObjectFile &Obj,
Twine(LoadCommandIndex) + " extends past the end of "
"the file");
uint64_t BigSize = Hints.nhints;
- BigSize *= Hints.nhints * sizeof(MachO::twolevel_hint);
+ BigSize *= sizeof(MachO::twolevel_hint);
BigSize += Hints.offset;
if (BigSize > FileSize)
return malformedError("offset field plus nhints times sizeof(struct "
OpenPOWER on IntegriCloud