diff --git a/modules/compiler/utils/source/barrier_regions.cpp b/modules/compiler/utils/source/barrier_regions.cpp index 795d9f4c3..bc82e69eb 100644 --- a/modules/compiler/utils/source/barrier_regions.cpp +++ b/modules/compiler/utils/source/barrier_regions.cpp @@ -971,8 +971,7 @@ void compiler::utils::Barrier::MakeLiveVariableMemType() { // Check if the alloca has a debug info source variable attached. If // so record this and the matching byte offset into the struct. #if LLVM_VERSION_GREATER_EQUAL(18, 0) - SmallVector DbgIntrinsics; - findDbgDeclares(DbgIntrinsics, member.value); + auto DbgIntrinsics = findDbgDeclares(member.value); #elif LLVM_VERSION_GREATER_EQUAL(17, 0) auto DbgIntrinsics = FindDbgDeclareUses(member.value); #else diff --git a/modules/compiler/vecz/source/transform/basic_mem2reg_pass.cpp b/modules/compiler/vecz/source/transform/basic_mem2reg_pass.cpp index b5559151f..cd2bb4f3c 100644 --- a/modules/compiler/vecz/source/transform/basic_mem2reg_pass.cpp +++ b/modules/compiler/vecz/source/transform/basic_mem2reg_pass.cpp @@ -184,8 +184,7 @@ bool BasicMem2RegPass::promoteAlloca(AllocaInst *Alloca) const { ToDelete.push_back(Store); DIBuilder DIB(*Alloca->getModule(), /*AllowUnresolved*/ false); #if LLVM_VERSION_GREATER_EQUAL(18, 0) - SmallVector DbgIntrinsics; - findDbgDeclares(DbgIntrinsics, Alloca); + auto DbgIntrinsics = findDbgDeclares(Alloca); #elif LLVM_VERSION_GREATER_EQUAL(17, 0) auto DbgIntrinsics = FindDbgDeclareUses(Alloca); #else