diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/Print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 761c9e3d4..c511af434 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -206,7 +206,7 @@ struct PrintExpressionContents : public Visitor<PrintExpressionContents> { case Xor: o << "xor"; break; case Xchg: o << "xchg"; break; } - if (curr->bytes != getTypeSize(curr->type)) { + if (curr->type != unreachable && curr->bytes != getTypeSize(curr->type)) { o << "_u"; } restoreNormalColor(o); @@ -218,7 +218,7 @@ struct PrintExpressionContents : public Visitor<PrintExpressionContents> { prepareColor(o); printRMWSize(o, curr->type, curr->bytes); o << "cmpxchg"; - if (curr->bytes != getTypeSize(curr->type)) { + if (curr->type != unreachable && curr->bytes != getTypeSize(curr->type)) { o << "_u"; } restoreNormalColor(o); |