Fix a compilation failure on non-MSVC compilers.
authorZachary Turner <zturner@google.com>
Mon, 8 Oct 2018 04:34:41 +0000 (04:34 +0000)
committerZachary Turner <zturner@google.com>
Mon, 8 Oct 2018 04:34:41 +0000 (04:34 +0000)
llvm-svn: 343952

llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp

index 54bf904..04e0bab 100644 (file)
@@ -261,7 +261,7 @@ Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR,
 
 Error CVSymbolDumperImpl::visitKnownRecord(CVSymbol &CVR,
                                            Compile3Sym &Compile3) {
-  W.printEnum("Language", Compile3.getLanguage(), getSourceLanguageNames());
+  W.printEnum("Language", uint8_t(Compile3.getLanguage()), getSourceLanguageNames());
   W.printFlags("Flags", uint32_t(Compile3.getFlags()),
                getCompileSym3FlagNames());
   W.printEnum("Machine", unsigned(Compile3.Machine), getCPUTypeNames());