diff options
author | Ian Bearman <ianb@microsoft.com> | 2022-03-15 13:31:25 -0700 |
---|---|---|
committer | Stella Stamenova <stilis@microsoft.com> | 2022-03-15 14:48:50 -0700 |
commit | 7ecb7efc898981c980a1ce50f0ef32b337e66bb9 (patch) | |
tree | b1b492415ffaa19e31b19d69b70e07d8749d0a5a /llvm/lib | |
parent | 6be457c14dafd634989c2c0b702a9231b438e2c4 (diff) | |
download | llvm-7ecb7efc898981c980a1ce50f0ef32b337e66bb9.zip llvm-7ecb7efc898981c980a1ce50f0ef32b337e66bb9.tar.gz llvm-7ecb7efc898981c980a1ce50f0ef32b337e66bb9.tar.bz2 |
[MLIR] UnknownLoc on Inlinable Calls in LLVMIR Translation
During MLIR translation to LLVMIR if an inlineable call has an UnkownLoc we get this error message:
```
inlinable function call in a function with debug info must have a !dbg location
call void @callee()
```
There is code that checks for this case and strips debug information to avoid this situation. I'm expanding this code to handle the case where an debug location points at a UnknownLoc. For example, a NamedLoc whose child location is an UnknownLoc.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D121633
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions