We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3c55b7 commit dc7834bCopy full SHA for dc7834b
llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -657,8 +657,8 @@ Error InstrProfWriter::writeImpl(ProfOStream &OS) {
657
: IndexedInstrProf::ProfVersion::CurrentVersion;
658
// The WritePrevVersion handling will either need to be removed or updated
659
// if the version is advanced beyond 12.
660
- assert(IndexedInstrProf::ProfVersion::CurrentVersion ==
661
- IndexedInstrProf::ProfVersion::Version12);
+ static_assert(IndexedInstrProf::ProfVersion::CurrentVersion ==
+ IndexedInstrProf::ProfVersion::Version12);
662
if (static_cast<bool>(ProfileKind & InstrProfKind::IRInstrumentation))
663
Header.Version |= VARIANT_MASK_IR_PROF;
664
if (static_cast<bool>(ProfileKind & InstrProfKind::ContextSensitive))
0 commit comments