diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-20 10:20:36 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-20 10:20:36 +0000 |
commit | 22a544bc825ae134acea55bb405240691b39af2c (patch) | |
tree | f9cedb2b12d2827e410d0d8252746263f13f2b84 /clang/lib/Checker/SimpleSValuator.cpp | |
parent | 895c899142459ec4d48e2bd77808ba000cef6c30 (diff) | |
download | bcm5719-llvm-22a544bc825ae134acea55bb405240691b39af2c.tar.gz bcm5719-llvm-22a544bc825ae134acea55bb405240691b39af2c.zip |
Add braces to avoid an ambiguous else, fixing a GCC warning.
llvm-svn: 106403
Diffstat (limited to 'clang/lib/Checker/SimpleSValuator.cpp')
-rw-r--r-- | clang/lib/Checker/SimpleSValuator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Checker/SimpleSValuator.cpp b/clang/lib/Checker/SimpleSValuator.cpp index fe82276faa5..0799380e80f 100644 --- a/clang/lib/Checker/SimpleSValuator.cpp +++ b/clang/lib/Checker/SimpleSValuator.cpp @@ -278,11 +278,11 @@ SVal SimpleSValuator::MakeSymIntVal(const SymExpr *LHS, // 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. |