[PATCH] D134094: [BOLT][NFC] Remove unreachable assertion

Maksim Panchenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 16 16:46:51 PDT 2022


maksfb created this revision.
maksfb added reviewers: yota9, yavtuk, Amir, ayermolo, rafauler.
Herald added a subscriber: treapster.
Herald added a project: All.
maksfb requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134094

Files:
  bolt/lib/Rewrite/RewriteInstance.cpp


Index: bolt/lib/Rewrite/RewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/RewriteInstance.cpp
+++ bolt/lib/Rewrite/RewriteInstance.cpp
@@ -1152,7 +1152,6 @@
                << Twine::utohexstr(Address) << ") does not have any section\n";
         continue;
       }
-      assert(Section && "section for functions must be registered");
 
       // Skip symbols from zero-sized sections.
       if (!Section->getSize())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134094.460946.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220916/80de443b/attachment.bin>


More information about the llvm-commits mailing list