[LoopUtils] Use i32 instead of `void`.
The actual type of the first argument of the @dbg intrinsic
doesn't really matter as we're setting it to `undef`, but the
bitcode reader is picky about `void` types.
llvm-svn: 349069
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 859a889..1d4f07f 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -615,7 +615,7 @@
DIBuilder DIB(*ExitBlock->getModule());
for (auto *DVI : DeadDebugInst)
DIB.insertDbgValueIntrinsic(
- UndefValue::get(DVI->getType()), DVI->getVariable(),
+ UndefValue::get(Builder.getInt32Ty()), DVI->getVariable(),
DVI->getExpression(), DVI->getDebugLoc(), ExitBlock->getFirstNonPHI());
// Remove the block from the reference counting scheme, so that we can