Skip to content

Commit 0f9287f

Browse files
committed
cast in eq check
1 parent 475c329 commit 0f9287f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/IR/LLVMContextImpl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ template <> struct MDNodeKeyImpl<DILocation> {
333333
return Line == RHS->getLine() && Column == RHS->getColumn() &&
334334
Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt() &&
335335
ImplicitCode == RHS->isImplicitCode() &&
336-
AtomGroup == RHS->getAtomGroup() && AtomRank == RHS->getAtomRank();
336+
AtomGroup == RHS->getAtomGroup() &&
337+
(uint8_t)AtomRank == RHS->getAtomRank();
337338
}
338339

339340
unsigned getHashValue() const {

0 commit comments

Comments
 (0)