aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Archive
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:10:28 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:10:28 +0000
commit4c71dfe356716e6bc1993ef5efdced08b68fe612 (patch)
treeb5ac49f6a963232367d6456a5bec7e7e5d5f1129 /lib/Archive
parentae9f3a3b7c915f725aef5a7250e88eaeddda03c6 (diff)
downloadexternal_llvm-4c71dfe356716e6bc1993ef5efdced08b68fe612.zip
external_llvm-4c71dfe356716e6bc1993ef5efdced08b68fe612.tar.gz
external_llvm-4c71dfe356716e6bc1993ef5efdced08b68fe612.tar.bz2
Update gcc 4.3 warnings fix patch with recent head changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive')
-rw-r--r--lib/Archive/ArchiveWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Archive/ArchiveWriter.cpp b/lib/Archive/ArchiveWriter.cpp
index f5c4126..07f7d88 100644
--- a/lib/Archive/ArchiveWriter.cpp
+++ b/lib/Archive/ArchiveWriter.cpp
@@ -47,11 +47,12 @@ inline unsigned numVbrBytes(unsigned num) {
// small ones and four for large ones. We expect this to access file offsets
// in the 2^10 to 2^24 range and symbol lengths in the 2^0 to 2^8 range,
// so this approach is reasonable.
- if (num < 1<<14)
+ if (num < 1<<14) {
if (num < 1<<7)
return 1;
else
return 2;
+ }
if (num < 1<<21)
return 3;