rename "SInt" methods to "Int" in APValue.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53467 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 183d9a9..4836be4 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -1814,12 +1814,11 @@
   if (const VariableArrayType* VLATy = dyn_cast<VariableArrayType>(T)) {
     APValue Result;
     if (VLATy->getSizeExpr() &&
-        VLATy->getSizeExpr()->tryEvaluate(Result, Context) && Result.isSInt() &&
-        Result.getSInt() > llvm::APSInt(Result.getSInt().getBitWidth(), 
-                                        Result.getSInt().isUnsigned())) {
-      return Context.getConstantArrayType(VLATy->getElementType(),
-                                          Result.getSInt(), 
-                                          ArrayType::Normal, 0);
+        VLATy->getSizeExpr()->tryEvaluate(Result, Context) && Result.isInt()) {
+      llvm::APSInt &Res = Result.getInt();
+      if (Res > llvm::APSInt(Res.getBitWidth(), Res.isUnsigned()))
+        return Context.getConstantArrayType(VLATy->getElementType(),
+                                            Res, ArrayType::Normal, 0);
     }
   }
   return QualType();