diff options
Diffstat (limited to 'llvm/lib/MC/WinCOFFObjectWriter.cpp')
| -rw-r--r-- | llvm/lib/MC/WinCOFFObjectWriter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp index 6c696738b48..f251942161d 100644 --- a/llvm/lib/MC/WinCOFFObjectWriter.cpp +++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp @@ -710,6 +710,11 @@ void WinCOFFObjectWriter::recordRelocation( Asm.getContext().reportFatalError(Fixup.getLoc(), Twine("symbol '") + A.getName() + "' can not be undefined"); + if (A.isTemporary() && A.isUndefined()) { + Asm.getContext().reportFatalError(Fixup.getLoc(), + Twine("assembler label '") + A.getName() + + "' can not be undefined"); + } MCSection *Section = Fragment->getParent(); |

