Issue 140141
Summary [lld] Bug with Assert in linker scripts
Labels lld
Assignees
Reporter lquinn2015
    This test https://github.com/llvm/llvm-project/blob/main/lld/test/ELF/linkerscript/assert.s

A semicolon after an Assert statement causes some type of bad state in LLVM lld this is problematic 


The error statement is totally misleading 

![Image](https://github.com/user-attachments/assets/3d100293-49a9-4a99-aa50-87b785c5fdce)


I believe fixing it is as simple as adding a peak consume in the parsing logic of assert statements. credit @pitust   I will try and make a fix tomorrow
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to