diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-07-29 20:26:23 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-07-29 20:26:23 +0000 |
commit | d06654f50be9adb5b82d08ea061aa95cb6c453ee (patch) | |
tree | efec3cf345da23964fbc670d2737cca4ed2fd0fd /llvm/lib/IR | |
parent | ff88d5a26f109979d5c5f04bca0f42a64d971d10 (diff) | |
download | bcm5719-llvm-d06654f50be9adb5b82d08ea061aa95cb6c453ee.tar.gz bcm5719-llvm-d06654f50be9adb5b82d08ea061aa95cb6c453ee.zip |
[opaque pointers] Remove use of PointerType::getElementType in favor of GEPOperator::getSourceElementType
llvm-svn: 243566
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 823916e7690..9018180ad75 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -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 << ", "; } |