Skip to content

Commit fc1ecda

Browse files
sstricklcommit-bot@chromium.org
authored andcommitted
[vm] Fix extra output in assembly DWARF.
Bug: b/158791706 Change-Id: I01289f330242de0216833f3d58c67168b044354f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150986 Auto-Submit: Tess Strickland <[email protected]> Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Martin Kustermann <[email protected]>
1 parent 2f2efeb commit fc1ecda

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

runtime/vm/image_snapshot.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,11 @@ class DwarfAssemblyStream : public DwarfWriteStream {
560560
Print(".L%s_end:\n", prefix);
561561
}
562562
void OffsetFromSymbol(const char* symbol, intptr_t offset) {
563-
if (offset == 0) PrintNamedAddress(symbol);
564-
PrintNamedAddressWithOffset(symbol, offset);
563+
if (offset == 0) {
564+
PrintNamedAddress(symbol);
565+
} else {
566+
PrintNamedAddressWithOffset(symbol, offset);
567+
}
565568
}
566569
void DistanceBetweenSymbolOffsets(const char* symbol1,
567570
intptr_t offset1,

0 commit comments

Comments
 (0)