mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
Add parens around constant calls to getelemptr to properly associate the reference
llvm-svn: 4032
This commit is contained in:
parent
fcdb95cd42
commit
1ccdc12400
@ -337,10 +337,10 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
return;
|
||||
|
||||
case Instruction::GetElementPtr:
|
||||
Out << "&(";
|
||||
Out << "(&(";
|
||||
printIndexingExpression(CPV->getOperand(0),
|
||||
CPV->op_begin()+1, CPV->op_end());
|
||||
Out << ")";
|
||||
Out << "))";
|
||||
return;
|
||||
case Instruction::Add:
|
||||
Out << "(";
|
||||
|
Loading…
Reference in New Issue
Block a user