Add braces around an array initializer.
authorDan Gohman <gohman@apple.com>
Wed, 27 May 2009 02:07:15 +0000 (02:07 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 27 May 2009 02:07:15 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72453 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolutionExpander.cpp

index 4e2600986b1b60a2fbd8b6c2afbec7b00f9d53f4..7ba8268b508aa33cbf387da39d4f6f12a3556e16 100644 (file)
@@ -458,7 +458,7 @@ Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) {
     // comments on expandAddToGEP for details.
     if (SE.TD) {
       SCEVHandle Base = S->getStart();
-      SCEVHandle RestArray[1] = Rest;
+      SCEVHandle RestArray[1] = { Rest };
       // Dig into the expression to find the pointer base for a GEP.
       ExposePointerBase(Base, RestArray[0], SE);
       // If we found a pointer, expand the AddRec with a GEP.