Fix MSVC bool to uint64_t promotion warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Pilgrim 2016-12-06 11:12:53 +00:00
parent 04d64487f9
commit 7b48d47c58

View File

@ -1728,7 +1728,7 @@ void ModuleBitcodeWriter::writeDIExpression(const DIExpression *N,
Record.reserve(N->getElements().size() + 1);
const uint64_t HasOpFragmentFlag = 1 << 1;
Record.push_back(N->isDistinct() | HasOpFragmentFlag);
Record.push_back((uint64_t)N->isDistinct() | HasOpFragmentFlag);
Record.append(N->elements_begin(), N->elements_end());
Stream.EmitRecord(bitc::METADATA_EXPRESSION, Record, Abbrev);