diff options
author | Davide Italiano <davide@freebsd.org> | 2018-12-13 18:37:23 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-12-13 18:37:23 +0000 |
commit | 9737096bb1523b1f2ab98d0a4733ad78dee2b9a9 (patch) | |
tree | 7443bcd686677080a4c321ae1bfba354b2a30400 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | dda331284db4cb6a43481aa7735dee26e504ff36 (diff) | |
download | bcm5719-llvm-9737096bb1523b1f2ab98d0a4733ad78dee2b9a9.tar.gz bcm5719-llvm-9737096bb1523b1f2ab98d0a4733ad78dee2b9a9.zip |
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 859a889c2e7..1d4f07ff1b9 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -615,7 +615,7 @@ void llvm::deleteDeadLoop(Loop *L, DominatorTree *DT = nullptr, 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 |