simplify padding, just fold it into the earlier resize.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56880 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 6125718..fa18ce3 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -518,18 +518,13 @@
                                          Tok.getLocation()));
   }
   llvm::SmallString<512> IntegerBuffer;
-  IntegerBuffer.resize(Tok.getLength());
+  // Add padding so that NumericLiteralParser can overread by one character.
+  IntegerBuffer.resize(Tok.getLength()+1);
   const char *ThisTokBegin = &IntegerBuffer[0];
   
   // Get the spelling of the token, which eliminates trigraphs, etc.
   unsigned ActualLength = PP.getSpelling(Tok, ThisTokBegin);
   
-  // Add padding so that NumericLiteralParser can overread by one character.
-  if (!IntegerBuffer.empty()) {
-    IntegerBuffer.push_back(' ');
-    ThisTokBegin = &IntegerBuffer[0];
-  }
-  
   NumericLiteralParser Literal(ThisTokBegin, ThisTokBegin+ActualLength, 
                                Tok.getLocation(), PP);
   if (Literal.hadError)