From b7f9a4ec3de078ace5d5b0f95d59d7fee98efb96 Mon Sep 17 00:00:00 2001 From: Vladislav Dzhidzhoev Date: Sat, 6 Dec 2025 00:23:19 +0100 Subject: [PATCH] [DebugInfo][test] Fix llvm/test/ThinLTO/X86/pr35472.ll (NFC) The test is intended to verify lazy loading of debug-location scope metadata. However, after d5d3eb16b7ab72529c83dacb2889811491e48909, DILexicalScope that was expected to be lazily loaded was not used in IR, so lazy loading did not occur. This patch fixes that, and adds an extra bcanalyzer check to ensure that DILexicalScope record is emitted. --- llvm/test/ThinLTO/X86/pr35472.ll | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/llvm/test/ThinLTO/X86/pr35472.ll b/llvm/test/ThinLTO/X86/pr35472.ll index f7b19e8ba7969..64d15f1cca9dc 100644 --- a/llvm/test/ThinLTO/X86/pr35472.ll +++ b/llvm/test/ThinLTO/X86/pr35472.ll @@ -8,11 +8,35 @@ ; RUN: llvm-lto -thinlto-action=run %t1.bc %t2.bc -exported-symbol=_Z5Alphav ; RUN: llvm-nm %t1.bc.thinlto.o | FileCheck %s -check-prefix=ThinLTOa ; RUN: llvm-nm %t2.bc.thinlto.o | FileCheck %s -check-prefix=ThinLTOb +; RUN: llvm-bcanalyzer -dump %t1.bc | FileCheck %s --implicit-check-not=' +; CHECK: +; CHECK: +; CHECK: +; CHECK: