Skip to content

Commit bceca84

Browse files
committed
Bug fix
1 parent fe80cf3 commit bceca84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,9 @@ void ModuleBitcodeWriter::writeDILabel(
23522352
Record.push_back(N->getLine());
23532353
Record.push_back(N->getColumn());
23542354
Record.push_back(
2355-
N->getCoroSuspendIdx().value_or(std::numeric_limits<uint64_t>::max()));
2355+
N->getCoroSuspendIdx().has_value()
2356+
? (uint64_t)N->getCoroSuspendIdx().value()
2357+
: std::numeric_limits<uint64_t>::max());
23562358

23572359
Stream.EmitRecord(bitc::METADATA_LABEL, Record, Abbrev);
23582360
Record.clear();

0 commit comments

Comments
 (0)