summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-22 22:08:45 +0000
committerDan Gohman <gohman@apple.com>2009-06-22 22:08:45 +0000
commitfd76113e28fcb07fa655c68c4f289b052a120b47 (patch)
treec4f7c15e164df1b73e94ce977cd9e59b88c8d928 /llvm/lib/Analysis/ScalarEvolutionExpander.cpp
parente67b77028e074fd79469d73bdfbad855b281b02f (diff)
downloadbcm5719-llvm-fd76113e28fcb07fa655c68c4f289b052a120b47.tar.gz
bcm5719-llvm-fd76113e28fcb07fa655c68c4f289b052a120b47.zip
Fix a few minor issues that were exposed by the removal of SCEVHandle.
llvm-svn: 73910
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolutionExpander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index c7e296eef50..c5591d70273 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -594,7 +594,7 @@ Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) {
// Truncate the result down to the original type, if needed.
const SCEV* T = SE.getTruncateOrNoop(V, Ty);
- return expand(V);
+ return expand(T);
}
Value *SCEVExpander::visitTruncateExpr(const SCEVTruncateExpr *S) {
OpenPOWER on IntegriCloud