Silence two C4806 warnings ('|': unsafe operation: no value of type 'bool' promoted to type 'const unsigned int' can equal the given constant). The fact that they trigger with this code seems like it may be a bug, but the warning itself is still generally useful enough to retain it for now.
llvm-svn: 267337
This commit is contained in:
@@ -1288,7 +1288,7 @@ void ModuleBitcodeWriter::writeDICompositeType(
|
||||
const DICompositeType *N, SmallVectorImpl<uint64_t> &Record,
|
||||
unsigned Abbrev) {
|
||||
const unsigned IsNotUsedInOldTypeRef = 0x2;
|
||||
Record.push_back(IsNotUsedInOldTypeRef | N->isDistinct());
|
||||
Record.push_back(IsNotUsedInOldTypeRef | (unsigned)N->isDistinct());
|
||||
Record.push_back(N->getTag());
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getRawName()));
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getFile()));
|
||||
@@ -1313,7 +1313,7 @@ void ModuleBitcodeWriter::writeDISubroutineType(
|
||||
const DISubroutineType *N, SmallVectorImpl<uint64_t> &Record,
|
||||
unsigned Abbrev) {
|
||||
const unsigned HasNoOldTypeRefs = 0x2;
|
||||
Record.push_back(HasNoOldTypeRefs | N->isDistinct());
|
||||
Record.push_back(HasNoOldTypeRefs | (unsigned)N->isDistinct());
|
||||
Record.push_back(N->getFlags());
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getTypeArray().get()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user