projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IR: Factor out replaceUsesOfWithOnConstantImpl(), NFC
[oota-llvm.git]
/
lib
/
Analysis
/
ScalarEvolution.cpp
diff --git
a/lib/Analysis/ScalarEvolution.cpp
b/lib/Analysis/ScalarEvolution.cpp
index bc9f45b2043092219d31a2864172b36e5620d440..06dbde58c1084488ae087b9efbc0633394c0c11e 100644
(file)
--- a/
lib/Analysis/ScalarEvolution.cpp
+++ b/
lib/Analysis/ScalarEvolution.cpp
@@
-7365,7
+7365,7
@@
const SCEV *ScalarEvolution::getElementSize(Instruction *Inst) {
if (StoreInst *Store = dyn_cast<StoreInst>(Inst))
Ty = Store->getValueOperand()->getType();
else if (LoadInst *Load = dyn_cast<LoadInst>(Inst))
- Ty = Load->get
PointerOperand()->get
Type();
+ Ty = Load->getType();
else
return nullptr;