diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/WinException.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp index 55d1350e446a..dccd71fffe05 100644 --- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp @@ -308,10 +308,8 @@ void WinException::endFuncletImpl() { const MCExpr *WinException::create32bitRef(const MCSymbol *Value) { if (!Value) return MCConstantExpr::create(0, Asm->OutContext); - return MCSymbolRefExpr::create(Value, useImageRel32 - ? MCSymbolRefExpr::VK_COFF_IMGREL32 - : MCSymbolRefExpr::VK_None, - Asm->OutContext); + auto Spec = useImageRel32 ? uint16_t(MCSymbolRefExpr::VK_COFF_IMGREL32) : 0; + return MCSymbolRefExpr::create(Value, Spec, Asm->OutContext); } const MCExpr *WinException::create32bitRef(const GlobalValue *GV) { |
