[llvm] r331983 - [DWARF] dwarfgen::LineTable::writeData(): pacify -Wcovered-switch-default
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Thu May 10 07:16:41 PDT 2018
Author: lebedevri
Date: Thu May 10 07:16:41 2018
New Revision: 331983
URL: http://llvm.org/viewvc/llvm-project?rev=331983&view=rev
Log:
[DWARF] dwarfgen::LineTable::writeData(): pacify -Wcovered-switch-default
Modified:
llvm/trunk/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
Modified: llvm/trunk/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/DWARF/DwarfGenerator.cpp?rev=331983&r1=331982&r2=331983&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/DWARF/DwarfGenerator.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/DWARF/DwarfGenerator.cpp Thu May 10 07:16:41 2018
@@ -203,16 +203,15 @@ void dwarfgen::LineTable::writeData(Arra
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");
}
}
More information about the llvm-commits
mailing list