aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-27 02:07:15 +0000
committerDan Gohman <gohman@apple.com>2009-05-27 02:07:15 +0000
commitf1a80489d6e9c76f52d9e6f59103a4fb2062e057 (patch)
treee699a53bf039b9c0e2732655558ea63783b974b5 /lib/Analysis/ScalarEvolutionExpander.cpp
parent4a4f767235dac50965fc266fb822d9a2e37d5212 (diff)
Add braces around an array initializer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--lib/Analysis/ScalarEvolutionExpander.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp
index 4e2600986b..7ba8268b50 100644
--- a/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -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.