From e0129e474da7feb61806cd7fc1552143368e1996 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Fri, 2 Oct 2015 20:52:14 +0000 Subject: Call the correct overload. Call the correct overload so a string literal does not get converted to a bool. Also fix the test case to match the names given. llvm-svn: 249183 --- llvm/lib/CodeGen/AsmPrinter/WinException.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp index b0c6b7d11e4..87437a1fe07 100644 --- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp @@ -425,8 +425,10 @@ void WinException::emitCSpecificHandlerTable(const MachineFunction *MF) { // Use the assembler to compute the number of table entries through label // difference and division. - MCSymbol *TableBegin = Ctx.createTempSymbol("lsda_begin"); - MCSymbol *TableEnd = Ctx.createTempSymbol("lsda_end"); + MCSymbol *TableBegin = + Ctx.createTempSymbol("lsda_begin", /*AlwaysAddSuffix=*/true); + MCSymbol *TableEnd = + Ctx.createTempSymbol("lsda_end", /*AlwaysAddSuffix=*/true); const MCExpr *LabelDiff = MCBinaryExpr::createSub(MCSymbolRefExpr::create(TableEnd, Ctx), MCSymbolRefExpr::create(TableBegin, Ctx), Ctx); -- cgit v1.2.3