summaryrefslogtreecommitdiff
path: root/src/passes/Inlining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Inlining.cpp')
-rw-r--r--src/passes/Inlining.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp
index 3ae63face..51dddaaa9 100644
--- a/src/passes/Inlining.cpp
+++ b/src/passes/Inlining.cpp
@@ -456,9 +456,7 @@ static Expression* doInlining(Module* module,
}
// Generate and update the inlined contents
auto* contents = ExpressionManipulator::copy(from->body, *module);
- if (!from->debugLocations.empty()) {
- debug::copyDebugInfo(from->body, contents, from, into);
- }
+ debug::copyDebugInfo(from->body, contents, from, into);
updater.walk(contents);
block->list.push_back(contents);
block->type = retType;