summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/passes/SafeHeap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/SafeHeap.cpp b/src/passes/SafeHeap.cpp
index 9b4779ee0..046f86857 100644
--- a/src/passes/SafeHeap.cpp
+++ b/src/passes/SafeHeap.cpp
@@ -127,7 +127,7 @@ struct SafeHeap : public Pass {
module->addImport(import);
}
if (auto* existing = ImportUtils::getImport(*module, ENV, SEGFAULT_IMPORT)) {
- dynamicTopPtr = existing->name;
+ segfault = existing->name;
} else {
auto* import = new Import;
import->name = segfault = SEGFAULT_IMPORT;
@@ -138,7 +138,7 @@ struct SafeHeap : public Pass {
module->addImport(import);
}
if (auto* existing = ImportUtils::getImport(*module, ENV, ALIGNFAULT_IMPORT)) {
- dynamicTopPtr = existing->name;
+ alignfault = existing->name;
} else {
auto* import = new Import;
import->name = alignfault = ALIGNFAULT_IMPORT;