[llvm-bugs] [Bug 41890] New: error: assembler label '' can not be undefined
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 15 12:12:02 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: tiagomacarios at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190515/423f09cb/attachment.html>
More information about the llvm-bugs
mailing list