mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
[opaque pointer type] Explicitly store the pointee type of the result of a GEP
Alternatively, this type could be derived on-demand whenever getResultElementType is called - if someone thinks that's the better choice (simple time/space tradeoff), I'm happy to give it a go. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1249,7 +1249,8 @@ GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI)
|
||||
OperandTraits<GetElementPtrInst>::op_end(this) -
|
||||
GEPI.getNumOperands(),
|
||||
GEPI.getNumOperands()),
|
||||
SourceElementType(GEPI.SourceElementType) {
|
||||
SourceElementType(GEPI.SourceElementType),
|
||||
ResultElementType(GEPI.ResultElementType) {
|
||||
std::copy(GEPI.op_begin(), GEPI.op_end(), op_begin());
|
||||
SubclassOptionalData = GEPI.SubclassOptionalData;
|
||||
}
|
||||
|
Reference in New Issue
Block a user