projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a53ce4e
)
[opaque pointers] Remove use of PointerType::getElementType in favor of GEPOperator...
author
David Blaikie
<dblaikie@gmail.com>
Wed, 29 Jul 2015 20:26:23 +0000
(20:26 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 29 Jul 2015 20:26:23 +0000
(20:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243566
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/AsmWriter.cpp
b/lib/IR/AsmWriter.cpp
index 823916e769052cbbdf894baef2236ebd9b5b97cc..9018180ad75a3d9a6fc7f2f7b884dc5ea0cd936c 100644
(file)
--- a/
lib/IR/AsmWriter.cpp
+++ b/
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 << ", ";
}