Skip to content

Commit 30fed4d

Browse files
committed
[clang][Interp][NFC] Return std::nullopt explicitly from classify()
1 parent 2345a80 commit 30fed4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/Interp/Context.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ std::optional<PrimType> Context::classify(QualType T) const {
102102
case 8:
103103
return PT_Sint8;
104104
default:
105-
return {};
105+
return std::nullopt;
106106
}
107107
}
108108

@@ -117,7 +117,7 @@ std::optional<PrimType> Context::classify(QualType T) const {
117117
case 8:
118118
return PT_Uint8;
119119
default:
120-
return {};
120+
return std::nullopt;
121121
}
122122
}
123123

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

146-
return {};
146+
return std::nullopt;
147147
}
148148

149149
unsigned Context::getCharBit() const {

0 commit comments

Comments
 (0)