Skip to content

Commit 3c588dd

Browse files
authored
Merge pull request #177 from CodaFi/block-identity
Make BasicBlock Conform to Equatable
2 parents 0d69f3f + f6ca71c commit 3c588dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/LLVM/BasicBlock.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,9 @@ extension BasicBlock {
118118
}
119119
}
120120
}
121+
122+
extension BasicBlock: Equatable {
123+
public static func == (lhs: BasicBlock, rhs: BasicBlock) -> Bool {
124+
return lhs.asLLVM() == rhs.asLLVM()
125+
}
126+
}

0 commit comments

Comments
 (0)