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 fe80cf3 commit bceca84Copy full SHA for bceca84
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -2352,7 +2352,9 @@ void ModuleBitcodeWriter::writeDILabel(
2352
Record.push_back(N->getLine());
2353
Record.push_back(N->getColumn());
2354
Record.push_back(
2355
- N->getCoroSuspendIdx().value_or(std::numeric_limits<uint64_t>::max()));
+ N->getCoroSuspendIdx().has_value()
2356
+ ? (uint64_t)N->getCoroSuspendIdx().value()
2357
+ : std::numeric_limits<uint64_t>::max());
2358
2359
Stream.EmitRecord(bitc::METADATA_LABEL, Record, Abbrev);
2360
Record.clear();
0 commit comments