From 2d88a8ee379d0cc3e462db1c824b45db5aa9a208 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Jul 2001 22:48:37 +0000 Subject: [PATCH] Parenthesize output for expranalyze so that pointer stuff being multiplied isn't confusing llvm-svn: 299 --- llvm/tools/analyze/analyze.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp index 6d35f3e085e0..baad23787ba8 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -44,10 +44,10 @@ static void PrintClassifiedExprs(Method *M) { cout << "\t\tExpr ="; switch (R.ExprTy) { case analysis::ExprType::ScaledLinear: - WriteAsOperand(cout, (Value*)R.Scale) << " *"; + WriteAsOperand(cout << "(", (Value*)R.Scale) << " ) *"; // fall through case analysis::ExprType::Linear: - WriteAsOperand(cout, R.Var); + WriteAsOperand(cout << "(", R.Var) << " )"; if (R.Offset == 0) break; else cout << " +"; // fall through