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:
a8a342b
)
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237311
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/ConstantFold.cpp
b/lib/IR/ConstantFold.cpp
index ec3414d25308b12e9b505cba77defcdc55e71250..16b113df1b80ed51cf4fb93eaac7c91a338ac896 100644
(file)
--- a/
lib/IR/ConstantFold.cpp
+++ b/
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;