[Lldb-commits] [lldb] [llvm] [IR] Rename BasicBlock::getFirstNonPHIOrDbg* (NFC) (PR #232604)

Nikita Popov via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 15 23:59:17 PDT 2026


================
@@ -3506,7 +3506,8 @@ class SwitchInst : public Instruction {
   /// Returns true if the default branch must result in immediate undefined
   /// behavior, false otherwise.
   bool defaultDestUnreachable() const {
-    return isa<UnreachableInst>(getDefaultDest()->getFirstNonPHIOrDbg());
+    return isa<UnreachableInst>(
+        getDefaultDest()->getFirstNonPHIOrPseudoProbe());
----------------
nikic wrote:

As a followup, I believe this can use just getFirstNonPHIIt(), similar for the other unreachable checks. pseudoprobe is willreturn, so uses before unreachable will get eliminated.

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


More information about the lldb-commits mailing list