[llvm-commits] CVS: llvm/lib/System/Path.cpp

Chris Lattner sabre at nondot.org
Thu May 3 11:16:14 PDT 2007



Changes in directory llvm/lib/System:

Path.cpp updated: 1.25 -> 1.26
---
Log message:

silence annoying gcc 4.3 warnings


---
Diffs of the changes:  (+4 -2)

 Path.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/System/Path.cpp
diff -u llvm/lib/System/Path.cpp:1.25 llvm/lib/System/Path.cpp:1.26
--- llvm/lib/System/Path.cpp:1.25	Tue Apr 10 22:15:35 2007
+++ llvm/lib/System/Path.cpp	Thu May  3 13:15:56 2007
@@ -44,11 +44,12 @@
   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 @@
       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 @@
             case 3: return ELF_SharedObject_FileType;
             case 4: return ELF_Core_FileType;
           }
+      }
       break;
 
     case 0xCA:






More information about the llvm-commits mailing list