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:
1606cca
)
[opaque pointer type] Use pointee type retrieved from asm, rather than accessing...
author
David Blaikie
<dblaikie@gmail.com>
Wed, 22 Apr 2015 16:37:35 +0000
(16:37 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 22 Apr 2015 16:37:35 +0000
(16:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235520
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/lib/AsmParser/LLParser.cpp
b/lib/AsmParser/LLParser.cpp
index 2e8008b96e7bdd17ce928e3318ba8e82bf9fca4a..64bf7cdc91900f48a5a2f43033bd255cf89601c7 100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
lib/AsmParser/LLParser.cpp
@@
-2849,8
+2849,7
@@
bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
}
SmallPtrSet<const Type*, 4> Visited;
- if (!Indices.empty() &&
- !BasePointerType->getElementType()->isSized(&Visited))
+ if (!Indices.empty() && !Ty->isSized(&Visited))
return Error(ID.Loc, "base element of getelementptr must be sized");
if (!GetElementPtrInst::getIndexedType(Ty, Indices))