Add braces to avoid an ambiguous else, fixing a GCC warning.
llvm-svn: 106403
diff --git a/clang/lib/Checker/SimpleSValuator.cpp b/clang/lib/Checker/SimpleSValuator.cpp
index fe82276..0799380 100644
--- a/clang/lib/Checker/SimpleSValuator.cpp
+++ b/clang/lib/Checker/SimpleSValuator.cpp
@@ -278,11 +278,11 @@
// Idempotent ops (like a*1) can still change the type of an expression.
// Wrap the LHS up in a NonLoc again and let EvalCastNL do the dirty work.
- if (isIdempotent)
+ if (isIdempotent) {
if (SymbolRef LHSSym = dyn_cast<SymbolData>(LHS))
return EvalCastNL(nonloc::SymbolVal(LHSSym), resultTy);
- else
- return EvalCastNL(nonloc::SymExprVal(LHS), resultTy);
+ return EvalCastNL(nonloc::SymExprVal(LHS), resultTy);
+ }
// If we reach this point, the expression cannot be simplified.
// Make a SymExprVal for the entire thing.