[llvm] r366906 - Silence a conversion warning after r366887. NFC
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 07:15:02 PDT 2019
Author: probinson
Date: Wed Jul 24 07:15:02 2019
New Revision: 366906
URL: http://llvm.org/viewvc/llvm-project?rev=366906&view=rev
Log:
Silence a conversion warning after r366887. NFC
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=366906&r1=366905&r2=366906&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/DWARF/DwarfGenerator.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/DWARF/DwarfGenerator.cpp Wed Jul 24 07:15:02 2019
@@ -262,7 +262,7 @@ MCSymbol *dwarfgen::LineTable::writeDefa
MCSymbol *UnitStart = Asm.createTempSymbol("line_unit_start");
MCSymbol *UnitEnd = Asm.createTempSymbol("line_unit_end");
if (Format == DwarfFormat::DWARF64) {
- Asm.emitInt32(dwarf::DW_LENGTH_DWARF64);
+ Asm.emitInt32((int)dwarf::DW_LENGTH_DWARF64);
Asm.EmitLabelDifference(UnitEnd, UnitStart, 8);
} else {
Asm.EmitLabelDifference(UnitEnd, UnitStart, 4);
@@ -288,7 +288,7 @@ MCSymbol *dwarfgen::LineTable::writeDefa
void dwarfgen::LineTable::writePrologue(AsmPrinter &Asm) const {
if (Format == DwarfFormat::DWARF64) {
- Asm.emitInt32(dwarf::DW_LENGTH_DWARF64);
+ Asm.emitInt32((int)dwarf::DW_LENGTH_DWARF64);
Asm.emitInt64(Prologue->TotalLength);
} else {
Asm.emitInt32(Prologue->TotalLength);
More information about the llvm-commits
mailing list