Fix a few minor issues that were exposed by the removal of SCEVHandle.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73910 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp
index c7e296e..c5591d7 100644
--- a/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -594,7 +594,7 @@
 
   // 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) {