mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove dependence on return type of ConstantStruct::get
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
371064481a
commit
04d1fb6df9
@ -82,7 +82,7 @@ bool EmitFunctionTable::run(Module &M){
|
||||
}
|
||||
|
||||
StructType *sttype = StructType::get(vType);
|
||||
ConstantStruct *cstruct = ConstantStruct::get(sttype, vConsts);
|
||||
Constant *cstruct = ConstantStruct::get(sttype, vConsts);
|
||||
|
||||
GlobalVariable *gb = new GlobalVariable(cstruct->getType(), true,
|
||||
GlobalValue::ExternalLinkage,
|
||||
|
@ -459,7 +459,7 @@ void ConstantStruct::replaceUsesOfWithOnConstant(Value *From, Value *To,
|
||||
Values.push_back(Val);
|
||||
}
|
||||
|
||||
ConstantStruct *Replacement = ConstantStruct::get(getType(), Values);
|
||||
Constant *Replacement = ConstantStruct::get(getType(), Values);
|
||||
assert(Replacement != this && "I didn't contain From!");
|
||||
|
||||
// Everyone using this now uses the replacement...
|
||||
|
Loading…
Reference in New Issue
Block a user