commit | 1d0be15f89cb5056e20e2d24faa8d6afb1573bca | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Thu Aug 13 21:58:54 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Thu Aug 13 21:58:54 2009 +0000 |
tree | 2cdabe223bfce83bd12e10dd557147a2f68c9bf8 | |
parent | d163e8b14c8aa5bbbb129e3f0dffdbe7213a3c72 [diff] [blame] |
Push LLVMContexts through the IntegerType APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index f5e5d35..792b753 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp
@@ -702,7 +702,8 @@ E = df_end(DN); DI != E; ++DI) { BasicBlock *BB = DI->getBlock(); WorkList.push_back(BB); - BB->replaceAllUsesWith(UndefValue::get(Type::LabelTy)); + BB->replaceAllUsesWith(UndefValue::get( + Type::getLabelTy(DeadBB->getContext()))); } while (!WorkList.empty()) {