From fd76113e28fcb07fa655c68c4f289b052a120b47 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 22 Jun 2009 22:08:45 +0000 Subject: Fix a few minor issues that were exposed by the removal of SCEVHandle. llvm-svn: 73910 --- llvm/lib/Analysis/ScalarEvolutionExpander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp') 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) { -- cgit v1.2.3