]> granicus.if.org Git - llvm/commitdiff
Fix windows buildbot where warnings are errors. We had a switch statement where all...
authorGreg Clayton <gclayton@apple.com>
Fri, 11 Nov 2016 16:55:31 +0000 (16:55 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 11 Nov 2016 16:55:31 +0000 (16:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286600 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARF/DWARFUnit.h

index 2093beb292426937447cd1efc3cd02d951eddaf2..e42ab0d63af10d99bd6e4218c5d762a231422077 100644 (file)
@@ -204,12 +204,9 @@ public:
     return getDwarfOffsetByteSize();
   }
   uint8_t getDwarfOffsetByteSize() const {
-    switch (getFormat()) {
-    case dwarf::DwarfFormat::DWARF32:
-      return 4;
-    case dwarf::DwarfFormat::DWARF64:
+    if (getFormat() == dwarf::DwarfFormat::DWARF64)
       return 8;
-    }
+    return 4;
   }
   uint64_t getBaseAddress() const { return BaseAddr; }