mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 19:20:50 +00:00
Parenthesize output for expranalyze so that pointer stuff being multiplied isn't confusing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3a5981663
commit
da5cfa369f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user