mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
De-constify Types in StructType::get() and TargetData::getIntPtrType().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user