Skip to content

Commit 0c247e1

Browse files
authored
Virtual classes need a virtual destructor (#6934)
See https://en.cppreference.com/w/cpp/language/destructor#Virtual_destructors This can trigger undefined behavior.
1 parent 9be2661 commit 0c247e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/nvidia/hopper/lib/Transforms/WarpSpecialization/CodePartitionUtility.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ struct Channel {
2828
bool operator==(const Channel &c) {
2929
return relation == c.relation && operandIdx == c.operandIdx && op == c.op;
3030
}
31+
virtual ~Channel() = default;
3132

3233
Operation *getDstOp() { return op; }
3334
unsigned getDstOperandIdx() { return operandIdx; }

0 commit comments

Comments
 (0)