summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit035eaacd1fd5406ea248a0275f7ad8207da6db21 (patch)
tree768322fb631dba58e1583f0e43694b767cbf2c0d /llvm/lib/Archive
parent579f07135afdc3975eb24a210433222b888dc9f7 (diff)
downloadbcm5719-llvm-035eaacd1fd5406ea248a0275f7ad8207da6db21.tar.gz
bcm5719-llvm-035eaacd1fd5406ea248a0275f7ad8207da6db21.zip
Update gcc 4.3 warnings fix patch with recent head changes
llvm-svn: 47368
Diffstat (limited to 'llvm/lib/Archive')
-rw-r--r--llvm/lib/Archive/ArchiveWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Archive/ArchiveWriter.cpp b/llvm/lib/Archive/ArchiveWriter.cpp
index f5c412609ac..07f7d88dd82 100644
--- a/llvm/lib/Archive/ArchiveWriter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud