summaryrefslogtreecommitdiff
path: root/src/passes/ConstHoisting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/ConstHoisting.cpp')
-rw-r--r--src/passes/ConstHoisting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp
index bddc0b5c5..e808f7af4 100644
--- a/src/passes/ConstHoisting.cpp
+++ b/src/passes/ConstHoisting.cpp
@@ -84,7 +84,7 @@ private:
}
case f32:
case f64: {
- size = getWasmTypeSize(value.type);
+ size = getTypeSize(value.type);
break;
}
default: WASM_UNREACHABLE();