[llvm-bugs] [Bug 20368] clang-cl: Assertion failure: "Expected Loc to be at or after Start"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 20 06:24:10 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=20368

Yaron Keren <yaron.keren at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |yaron.keren at gmail.com
             Status|NEW                         |RESOLVED

--- Comment #1 from Yaron Keren <yaron.keren at gmail.com> ---
works with trunk 25c8ffa223ecec8e0c4c3d3772886295bde0c0e9:

$ grep ASSERTIONS CMakeCache.txt
LLVM_ENABLE_ASSERTIONS:BOOL=ON
yaron at YARON:~/build$ cat test3.c
void t36() {
  int arr[4];
  __asm {
  mov eax, 12[4 + arr]
  mov eax, 4[64 + arr + (2*32)]
  mov eax, 4[64 + arr - 2*32]
  mov eax, [arr + 4]
  mov eax, [arr + 4 + 32*2 - 4]
  mov eax, [4 + arr]
  mov eax, [4 + arr + 4]
  mov eax, [64 + arr + (2*32)]
  mov eax, [64 + arr - 2*32]
  }
}
$ bin/clang-cl -c test3.c
$

-- 
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/20210820/e48e493d/attachment.html>


More information about the llvm-bugs mailing list