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

llvm-svn: 73910
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index c7e296e..c5591d7 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/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) {