diff options
Diffstat (limited to 'src/passes/SpillPointers.cpp')
-rw-r--r-- | src/passes/SpillPointers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/SpillPointers.cpp b/src/passes/SpillPointers.cpp index 10fa58845..758ca3223 100644 --- a/src/passes/SpillPointers.cpp +++ b/src/passes/SpillPointers.cpp @@ -78,7 +78,7 @@ struct SpillPointers PointerMap pointerMap; for (Index i = 0; i < func->getNumLocals(); i++) { if (func->getLocalType(i) == ABI::PointerType) { - auto offset = pointerMap.size() * getTypeSize(ABI::PointerType); + auto offset = pointerMap.size() * ABI::PointerType.getByteSize(); pointerMap[i] = offset; } } @@ -140,7 +140,7 @@ struct SpillPointers // get the stack space, and set the local to it ABI::getStackSpace(spillLocal, func, - getTypeSize(ABI::PointerType) * pointerMap.size(), + ABI::PointerType.getByteSize() * pointerMap.size(), *getModule()); } } @@ -184,9 +184,9 @@ struct SpillPointers // add the spills for (auto index : toSpill) { block->list.push_back( - builder.makeStore(getTypeSize(ABI::PointerType), + builder.makeStore(ABI::PointerType.getByteSize(), pointerMap[index], - getTypeSize(ABI::PointerType), + ABI::PointerType.getByteSize(), builder.makeLocalGet(spillLocal, ABI::PointerType), builder.makeLocalGet(index, ABI::PointerType), ABI::PointerType)); |