From: Zachary Turner Date: Mon, 8 Oct 2018 04:34:41 +0000 (+0000) Subject: Fix a compilation failure on non-MSVC compilers. X-Git-Tag: llvmorg-8.0.0-rc1~7073 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f6ac4c264f8f9cc9c6f5f0935a01f423b291428;p=platform%2Fupstream%2Fllvm.git Fix a compilation failure on non-MSVC compilers. llvm-svn: 343952 --- diff --git a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp index 54bf904..04e0bab 100644 --- a/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp +++ b/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp @@ -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());