projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dc1397
)
[opaque pointer type] Use GlobalVariable::getValueType rather than accessing it throu...
author
David Blaikie
<dblaikie@gmail.com>
Wed, 13 May 2015 22:54:54 +0000
(22:54 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 13 May 2015 22:54:54 +0000
(22:54 +0000)
llvm-svn: 237311
llvm/lib/IR/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/ConstantFold.cpp
b/llvm/lib/IR/ConstantFold.cpp
index
ec3414d
..
16b113d
100644
(file)
--- a/
llvm/lib/IR/ConstantFold.cpp
+++ b/
llvm/lib/IR/ConstantFold.cpp
@@
-1385,7
+1385,7
@@
static ICmpInst::Predicate areGlobalsPotentiallyEqual(const GlobalValue *GV1,
if (GV->hasExternalWeakLinkage() || GV->hasWeakAnyLinkage())
return true;
if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) {
- Type *Ty = GVar->get
Type()->getPointerElement
Type();
+ Type *Ty = GVar->get
Value
Type();
// A global with opaque type might end up being zero sized.
if (!Ty->isSized())
return true;