Skip to content

Commit c43932e

Browse files
SevenIsSevenSeven
and
Seven
authored
fix build error in MSVC build (#86622)
This commit(#84738) introduced following compile warning then treated-as-error in MSVC build. >>>"'^': unsafe mix of type 'unsigned int' and type 'bool' in operation" --------- Co-authored-by: Seven <[email protected]>
1 parent 7db4046 commit c43932e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/IR/BasicBlock.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ template <> struct DenseMapInfo<BasicBlock::iterator> {
791791
static unsigned getHashValue(const BasicBlock::iterator &It) {
792792
return DenseMapInfo<void *>::getHashValue(
793793
reinterpret_cast<void *>(It.getNodePtr())) ^
794-
It.getHeadBit();
794+
(unsigned)It.getHeadBit();
795795
}
796796

797797
static bool isEqual(const BasicBlock::iterator &LHS,

0 commit comments

Comments
 (0)