diff options
Diffstat (limited to 'src/passes/ConstHoisting.cpp')
-rw-r--r-- | src/passes/ConstHoisting.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp index 6c79c4215..43c8ccaa7 100644 --- a/src/passes/ConstHoisting.cpp +++ b/src/passes/ConstHoisting.cpp @@ -77,7 +77,7 @@ private: } // measure the size of the constant Index size = 0; - switch (value.type) { + switch (value.type.getSingle()) { case Type::i32: { size = getWrittenSize(S32LEB(value.geti32())); break; |