summaryrefslogtreecommitdiff
path: root/src/ir/abstract.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/abstract.h')
-rw-r--r--src/ir/abstract.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/abstract.h b/src/ir/abstract.h
index 06a1cd41c..f7bc664dd 100644
--- a/src/ir/abstract.h
+++ b/src/ir/abstract.h
@@ -52,7 +52,7 @@ enum Op {
// you can provide i32 and Add and receive the specific opcode for a 32-bit
// addition, AddInt32. If the op does not exist, it returns Invalid.
inline UnaryOp getUnary(Type type, Op op) {
- switch (type) {
+ switch (type.getSingle()) {
case Type::i32: {
return InvalidUnary;
}
@@ -93,7 +93,7 @@ inline UnaryOp getUnary(Type type, Op op) {
}
inline BinaryOp getBinary(Type type, Op op) {
- switch (type) {
+ switch (type.getSingle()) {
case Type::i32: {
switch (op) {
case Add: