https://bugs.llvm.org/show_bug.cgi?id=41890
Bug ID: 41890
Summary: error: assembler label '' can not be undefined
Product: clang
Version: 8.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: tiagomacar...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
One of our open-source projects is failing to build with clang in 32 bits:
https://github.com/microsoft/wil/issues/7
I tracked down the minimal repro to be:
#include <intrin.h>
void f()
{
__annotation(L"");
__int2c();
}
clang-cl.exe -c -m32 -Zi a.cpp
error: assembler label '' can not be undefined
error: assembler label '' can not be undefined
2 errors generated.
It works fine without the -m32 flag.
RNK take on the issue:
It looks like I misclassified the label as an EH_LABEL, and some pass is
dropping it. I'm not sure why the -m32 flag matters, but I don't think it will
be hard to fix.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs