summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-05-13 22:55:01 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-05-13 22:55:01 +0000
commit8f27ae46b83cfa8a97a1532d49d6097889410ea4 (patch)
tree6ec0adff863a5115c8d3618c72abcc0c38245869 /llvm/lib/AsmParser
parente7107060f8d1a0b771a9c0e242006d2c355f8abc (diff)
downloadbcm5719-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
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
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");
OpenPOWER on IntegriCloud