summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-12 14:06:48 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-12 14:06:48 +0000
commit5fdd6c8793462549e3593890ec61573da06e3346 (patch)
tree895067e740b3c6f2f97805443c61195cf8de169a /tools/bugpoint
parentd475c105080cc5082ca8b8e87c89fa7c2dade39e (diff)
downloadllvm-5fdd6c8793462549e3593890ec61573da06e3346.tar.gz
llvm-5fdd6c8793462549e3593890ec61573da06e3346.tar.bz2
llvm-5fdd6c8793462549e3593890ec61573da06e3346.tar.xz
Second attempt at de-constifying LLVM Types in FunctionType::get(),
StructType::get() and TargetData::getIntPtrType(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/ExtractFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index 7ed15245c1..9941add52e 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/tools/bugpoint/ExtractFunction.cpp
@@ -173,7 +173,7 @@ void llvm::DeleteFunctionBody(Function *F) {
static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
assert(!TorList.empty() && "Don't create empty tor list!");
std::vector<Constant*> ArrayElts;
- const Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
+ Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
const StructType *STy =
StructType::get(Int32Ty, TorList[0].first->getType(), NULL);