Skip to content

Commit 423aa00

Browse files
committed
Add LLVM_ATTRIBUTE_USED to DominanceInfo::dump
This function was unavailable in the debugger because it was getting optimized away.
1 parent 736faac commit 423aa00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/Dominance.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class DominanceInfo : public DominatorTreeBase {
9393
}
9494

9595
#ifndef NDEBUG
96-
void dump() { print(llvm::errs()); };
96+
void dump() LLVM_ATTRIBUTE_USED { print(llvm::errs()); }
9797
#endif
9898
};
9999

0 commit comments

Comments
 (0)