aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 18:15:56 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 18:15:56 +0000
commit24eac6cb00ab18afe7a175ea876bbde776c07532 (patch)
tree7ad384191a4ad78fff15e25d8882e62d170bbe4f /lib/System
parenta5ae15ecb7f3447377121df5cf6598da9545c0c4 (diff)
downloadexternal_llvm-24eac6cb00ab18afe7a175ea876bbde776c07532.zip
external_llvm-24eac6cb00ab18afe7a175ea876bbde776c07532.tar.gz
external_llvm-24eac6cb00ab18afe7a175ea876bbde776c07532.tar.bz2
silence annoying gcc 4.3 warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Path.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp
index 66436ae..634ce5d 100644
--- a/lib/System/Path.cpp
+++ b/lib/System/Path.cpp
@@ -44,11 +44,12 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
assert(length >=4 && "Invalid magic number length");
switch (magic[0]) {
case 'l':
- if (magic[1] == 'l' && magic[2] == 'v')
+ if (magic[1] == 'l' && magic[2] == 'v') {
if (magic[3] == 'c')
return CompressedBytecode_FileType;
else if (magic[3] == 'm')
return Bytecode_FileType;
+ }
break;
case '!':
if (length >= 8)
@@ -57,7 +58,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
break;
case '\177':
- if (magic[1] == 'E' && magic[2] == 'L' && magic[3] == 'F')
+ if (magic[1] == 'E' && magic[2] == 'L' && magic[3] == 'F') {
if (length >= 18 && magic[17] == 0)
switch (magic[16]) {
default: break;
@@ -66,6 +67,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
case 3: return ELF_SharedObject_FileType;
case 4: return ELF_Core_FileType;
}
+ }
break;
case 0xCA: