diff options
Diffstat (limited to 'src/passes/DebugLocationPropagation.cpp')
-rw-r--r-- | src/passes/DebugLocationPropagation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/DebugLocationPropagation.cpp b/src/passes/DebugLocationPropagation.cpp index e2d1ac50f..b2eb8fa83 100644 --- a/src/passes/DebugLocationPropagation.cpp +++ b/src/passes/DebugLocationPropagation.cpp @@ -64,10 +64,10 @@ struct DebugLocationPropagation if (auto it = locs.find(previous); it != locs.end()) { locs[curr] = it->second; } - } else if (self->getFunction()->prologLocation.size()) { + } else if (self->getFunction()->prologLocation) { // Instructions may inherit their locations from the function // prolog. - locs[curr] = *self->getFunction()->prologLocation.begin(); + locs[curr] = *self->getFunction()->prologLocation; } } expressionStack.push_back(curr); |