summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/DWARF
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
index a6aa1b79070..52d92f44078 100644
--- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
@@ -203,16 +203,15 @@ void dwarfgen::LineTable::writeData(ArrayRef<ValueAndLength> Data,
case Long:
case Quad:
Asm.OutStreamer->EmitIntValue(Entry.Value, Entry.Length);
- break;
+ continue;
case ULEB:
Asm.EmitULEB128(Entry.Value);
- break;
+ continue;
case SLEB:
Asm.EmitSLEB128(Entry.Value);
- break;
- default:
- llvm_unreachable("unsupported ValueAndLength Length value");
+ continue;
}
+ llvm_unreachable("unsupported ValueAndLength Length value");
}
}
OpenPOWER on IntegriCloud