vsk added a comment.

I might've missed it, but the debug location merging behavior could use a test. 
Here's one way to write it: https://godbolt.org/z/Yb9PY9.

In `@_Z13keep_locationPi`, the !dbg attachment on the trap should match 
`!DILocation(line: 1`. In `@_Z15merge_locationsPi`, the attachment should match 
`!DILocation(line: 0` (it currently incorrectly points to line 4).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89959/new/

https://reviews.llvm.org/D89959

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to