summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index c511af434..fd0bf17dc 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -135,7 +135,7 @@ struct PrintExpressionContents : public Visitor<PrintExpressionContents> {
prepareColor(o) << printType(curr->type);
if (curr->isAtomic) o << ".atomic";
o << ".load";
- if (curr->bytes < 4 || (curr->type == i64 && curr->bytes < 8)) {
+ if (curr->type != unreachable && curr->bytes < getTypeSize(curr->type)) {
if (curr->bytes == 1) {
o << '8';
} else if (curr->bytes == 2) {