mstorsjo wrote:

This PR triggers failed asserts. This is reproducible with 
https://martin.st/temp/qtdeclarative-repro1.cpp, like this:
```
$ clang -target aarch64-w64-mingw32 -c qtdeclarative-repro1.cpp
Assertion failed: ((ND->isUsed(false) || !isa<VarDecl>(ND) || E->isNonOdrUse() 
|| !E->getLocation().isValid()) && "Should not use decl without marking it 
used!"), function EmitDeclRefLValue, file 
/home/martin/code/llvm-project/clang/lib/CodeGen/CGExpr.cpp, line 3107.
```
(This file isn't the final reduced form, but creduce seems to be running quite 
slowly on this file, so it's a partially reduced testcase.)

https://github.com/llvm/llvm-project/pull/97308
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to