[clang] [llvm] Compute GUIDs once and store in metadata (PR #184065)

Owen Rodley via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 18:05:19 PDT 2026


================
@@ -886,6 +887,12 @@ void llvm::updateVCallVisibilityInModule(
     function_ref<bool(StringRef)> IsVisibleToRegularObj) {
   if (!hasWholeProgramVisibility(WholeProgramVisibilityEnabledInLTO))
     return;
+
+  // Manually assign GUIDs -- updateVCallVisibilityInModule accesses GUIDs, and
+  // there's no way to specify it in the pass pipeline since this runs before
+  // any pass given on the command line.
+  AssignGUIDPass::runOnModule(M);
----------------
orodley wrote:

As discussed, this is for when this is invoked via flag in `opt`. Will move up into the caller instead.

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


More information about the llvm-commits mailing list