flang-compiler / f18-llvm-project

Fork of llvm/llvm-project for f18. In sync with f18-mlir and f18.
http://llvm.org
28 stars 16 forks source link

Use current source location when lowering compiler generated symbols #1562

Closed jeanPerier closed 2 years ago

jeanPerier commented 2 years ago

Compiler generated symbol names cannot be used as source locations, these names are not pointing to any source files. Instead, use the current location which is the best we have (not a silver bullet, it will usually point to the scope entry when dealing with compiler generated symbols, which might not be the most helpful to a user, but at least help narrowing down the function causing the error).