diff options
author | Richard Trieu <rtrieu@google.com> | 2015-10-02 20:52:14 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-10-02 20:52:14 +0000 |
commit | e0129e474da7feb61806cd7fc1552143368e1996 (patch) | |
tree | 413fe5dbcf92cc0684ce97e2411b12420bbf8a0e /llvm/lib/CodeGen/AsmPrinter | |
parent | ae5dee8031c1ee2b9a6660cbf5efeff45cac7cf4 (diff) | |
download | bcm5719-llvm-e0129e474da7feb61806cd7fc1552143368e1996.tar.gz bcm5719-llvm-e0129e474da7feb61806cd7fc1552143368e1996.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/WinException.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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); |