summaryrefslogtreecommitdiff
path: root/src/passes/CodeFolding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/CodeFolding.cpp')
-rw-r--r--src/passes/CodeFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/CodeFolding.cpp b/src/passes/CodeFolding.cpp
index 818bb33b8..947e64715 100644
--- a/src/passes/CodeFolding.cpp
+++ b/src/passes/CodeFolding.cpp
@@ -718,7 +718,7 @@ private:
mergeable.pop_back();
}
// ensure the replacement has the same type, so the outside is not surprised
- outer->finalize(getFunction()->result);
+ outer->finalize(getFunction()->sig.results);
getFunction()->body = outer;
return true;
}