diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-05-13 22:55:01 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-05-13 22:55:01 +0000 |
commit | 8f27ae46b83cfa8a97a1532d49d6097889410ea4 (patch) | |
tree | 6ec0adff863a5115c8d3618c72abcc0c38245869 | |
parent | e7107060f8d1a0b771a9c0e242006d2c355f8abc (diff) | |
download | bcm5719-llvm-8f27ae46b83cfa8a97a1532d49d6097889410ea4.tar.gz bcm5719-llvm-8f27ae46b83cfa8a97a1532d49d6097889410ea4.zip |
[opaque pointer type] Use the value type of the GlobalVariable rather than accessing it through the pointee's type
llvm-svn: 237312
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 398292c2aa1..ef464c339f7 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -776,7 +776,7 @@ bool LLParser::ParseGlobal(const std::string &Name, LocTy NameLoc, Name, nullptr, GlobalVariable::NotThreadLocal, AddrSpace); } else { - if (GVal->getType()->getElementType() != Ty) + if (GVal->getValueType() != Ty) return Error(TyLoc, "forward reference and definition of global have different types"); |