[PATCH] D159485: [DebugInfo][RemoveDIs] Use getStableDebugLoc when picking IRBuilder source locations

Augie Fackler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 13:03:06 PDT 2023


durin42 added inline comments.


================
Comment at: llvm/include/llvm/IR/IRBuilder.h:200
     if (IP != TheBB->end())
-      SetCurrentDebugLocation(IP->getDebugLoc());
+      SetCurrentDebugLocation(IP->getStableDebugLoc());
   }
----------------
The crash I'm seeing is on this line, I can give you the stack trace if you want to look in parallel with my investigation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D159485



More information about the llvm-commits mailing list