You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that in Sema::LookupInlineAsmIdentifier, we look at the type of file and notice that it's an array type, so we set the size according to the size of the array (in this test case the size will be 1 which causes us to rewrite this and add a byte ptr.
llvmbot
transferred this issue from llvm/llvm-bugzilla-archive
Dec 9, 2021
Extended Description
$ cat test.c
void f() {
char file[] = "";
__asm lea eax, file
}
Ehsan Akhgari@WIN-LD01V6P651K /c/moz/src/obj-ff-clangcl/gfx/cairo/cairo/src
$ clang-cl -c test.c
(2,2) : error: instruction requires: 64-bit mode
lea eax, byte ptr file
^
1 error generated.
The text was updated successfully, but these errors were encountered: