Skip to content

Commit acc0382

Browse files
author
Colin Davidson
authored
Merge pull request uxlfoundation#915 from coldav/colin/fix_llvm_tip_llvm_declare
[LLVM TIP] Fix use of ConvertDebugDeclareToDebugValue
2 parents 0a88be6 + ff4eea6 commit acc0382

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

modules/compiler/vecz/source/transform/basic_mem2reg_pass.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,6 @@ bool BasicMem2RegPass::promoteAlloca(AllocaInst *Alloca) const {
181181
if (StoreInst *Store = dyn_cast<StoreInst>(U)) {
182182
StoredValue = Store->getValueOperand();
183183
ToDelete.push_back(Store);
184-
DIBuilder DIB(*Alloca->getModule(), /*AllowUnresolved*/ false);
185-
auto DbgIntrinsics = findDbgDeclares(Alloca);
186-
for (auto oldDII : DbgIntrinsics) {
187-
ConvertDebugDeclareToDebugValue(oldDII, Store, DIB);
188-
}
189184
break;
190185
}
191186
}

0 commit comments

Comments
 (0)