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