diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-04-22 16:37:35 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-04-22 16:37:35 +0000 |
commit | e169e8206bfcdb7ed5cff7ecc9dbe97ca5e1a1c9 (patch) | |
tree | bb2504d2b8cf4bd3c00cb1af46cdad5f785fd942 /llvm/lib/AsmParser/LLParser.cpp | |
parent | ec6789bcfaca6daa635306ade2e7824fcbdd20ff (diff) | |
download | bcm5719-llvm-e169e8206bfcdb7ed5cff7ecc9dbe97ca5e1a1c9.tar.gz bcm5719-llvm-e169e8206bfcdb7ed5cff7ecc9dbe97ca5e1a1c9.zip |
[opaque pointer type] Use pointee type retrieved from asm, rather than accessing it via the pointer type
llvm-svn: 235520
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 2e8008b96e7..64bf7cdc919 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/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)) |