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:
ea3c20f
)
[opaque pointer type] Use the value type of the GlobalVariable rather than accessing...
author
David Blaikie
<dblaikie@gmail.com>
Wed, 13 May 2015 22:55:01 +0000
(22:55 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 13 May 2015 22:55:01 +0000
(22:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237312
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 398292c2aa1ab99e97bc855087193cf44ea136fa..ef464c339f762635e46d6b63f01d7ec60d1bf524 100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
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->get
Type()->getElement
Type() != Ty)
+ if (GVal->get
Value
Type() != Ty)
return Error(TyLoc,
"forward reference and definition of global have different types");