[llvm] Instruction: avoid crash in getStableDebugLoc when `this` isn't a DbgInfoIntrinsic (PR #66266)

Augie Fackler via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 12:33:04 PDT 2023


durin42 wrote:

@jmorse could you elaborate on

> In terms of testing, would you be able to add another case to the "DebugLoc" test in llvm/unittests/IR/IRBuilderTest.cpp, I reckon inserting a dbg.label, erasing the terminator then creating another instruction at the dbg.label should cover this nicely.

please? I'm not at all conversant in this part of LLVM.

https://github.com/llvm/llvm-project/pull/66266


More information about the llvm-commits mailing list