forked from OSchip/llvm-project
Write constexpr casts using the cast X to Y notation, not using the implicit
type result llvm-svn: 3354
This commit is contained in:
parent
d8ecff793a
commit
83b396b830
|
@ -348,6 +348,11 @@ static void WriteConstantInt(ostream &Out, const Constant *CV, bool PrintName,
|
|||
|
||||
if (isGEP)
|
||||
Out << ")";
|
||||
else if (CE->getOpcode() == Instruction::Cast) {
|
||||
Out << " to ";
|
||||
printTypeInt(Out, CE->getType(), TypeTable);
|
||||
}
|
||||
|
||||
} else {
|
||||
Out << "<placeholder or erroneous Constant>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue