mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
[opaque pointers] Remove use of PointerType::getElementType in favor of GEPOperator::getSourceElementType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a53ce4e0be
commit
0552dc73a4
@ -1340,10 +1340,7 @@ static void WriteConstantInternal(raw_ostream &Out, const Constant *CV,
|
||||
Out << " (";
|
||||
|
||||
if (const GEPOperator *GEP = dyn_cast<GEPOperator>(CE)) {
|
||||
TypePrinter.print(
|
||||
cast<PointerType>(GEP->getPointerOperandType()->getScalarType())
|
||||
->getElementType(),
|
||||
Out);
|
||||
TypePrinter.print(GEP->getSourceElementType(), Out);
|
||||
Out << ", ";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user