Commit ae919c9f authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by Kevin Modzelewski

Minor: mark these as noexcept

parent a0f0cb72
......@@ -622,12 +622,12 @@ struct GetattrRewriteArgs;
struct DelattrRewriteArgs;
// Helper function around PyString_InternFromString:
BoxedString* internStringImmortal(llvm::StringRef s);
BoxedString* internStringImmortal(llvm::StringRef s) noexcept;
// Callers should use this function if they can accept mortal string objects.
// FIXME For now it just returns immortal strings, but at least we can use it
// to start documenting the places that can take mortal strings.
inline BoxedString* internStringMortal(llvm::StringRef s) {
inline BoxedString* internStringMortal(llvm::StringRef s) noexcept {
return internStringImmortal(s);
}
......
......@@ -371,7 +371,7 @@ extern "C" PyObject* PyString_InternFromString(const char* s) noexcept {
return internStringImmortal(s);
}
BoxedString* internStringImmortal(llvm::StringRef s) {
BoxedString* internStringImmortal(llvm::StringRef s) noexcept {
auto& entry = interned_strings[s];
if (!entry) {
num_interned_strings.log();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment