[PATCH] D155252: [PseudoProbe] Remove unnecessary asserts about non-zero discriminator.

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 09:43:24 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG40508e3ed978: [PseudoProbe] Remove unnecessary asserts about non-zero discriminator. (authored by hoy).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D155252

Files:
  llvm/lib/IR/PseudoProbe.cpp


Index: llvm/lib/IR/PseudoProbe.cpp
===================================================================
--- llvm/lib/IR/PseudoProbe.cpp
+++ llvm/lib/IR/PseudoProbe.cpp
@@ -64,8 +64,6 @@
     Probe.Discriminator = 0;
     if (const DebugLoc &DLoc = Inst.getDebugLoc())
       Probe.Discriminator = DLoc->getDiscriminator();
-    assert(Probe.Discriminator == 0 &&
-           "Unexpected non-zero FS-discriminator for IR pseudo probes");
     return Probe;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155252.541101.patch
Type: text/x-patch
Size: 462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230717/f0cf60c4/attachment.bin>


More information about the llvm-commits mailing list