From c7046c91cd1058498cfa2f5b5694eafd9d252c23 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Wed, 24 Jul 2019 14:15:02 +0000 Subject: [PATCH] Silence a conversion warning after r366887. NFC llvm-svn: 366906 --- llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp index 0fb3fbb..f336b0e 100644 --- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp @@ -262,7 +262,7 @@ MCSymbol *dwarfgen::LineTable::writeDefaultPrologue(AsmPrinter &Asm) const { 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::writeDefaultPrologue(AsmPrinter &Asm) const { 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); -- 2.7.4