Skip to content

Commit

Permalink
[clang][Interp][NFC] Return std::nullopt explicitly from classify()
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Jul 26, 2023
1 parent cafbcfa commit b2e6516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/AST/Interp/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ std::optional<PrimType> Context::classify(QualType T) const {
case 8:
return PT_Sint8;
default:
return {};
return std::nullopt;
}
}

Expand All @@ -117,7 +117,7 @@ std::optional<PrimType> Context::classify(QualType T) const {
case 8:
return PT_Uint8;
default:
return {};
return std::nullopt;
}
}

Expand All @@ -143,7 +143,7 @@ std::optional<PrimType> Context::classify(QualType T) const {
if (const auto *DT = dyn_cast<MemberPointerType>(T))
return classify(DT->getPointeeType());

return {};
return std::nullopt;
}

unsigned Context::getCharBit() const {
Expand Down

0 comments on commit b2e6516

Please sign in to comment.