diff --git a/src/asm/lexer.cpp b/src/asm/lexer.cpp index b273cc4a..990bfc9c 100644 --- a/src/asm/lexer.cpp +++ b/src/asm/lexer.cpp @@ -12,7 +12,6 @@ #include #include #include -#include // nothrow #include #include #include @@ -347,7 +346,7 @@ void LexerState::setFileAsNextState(std::string const &filePath, bool updateStat // Read the entire file for better performance // Ideally we'd use C++20 `auto ptr = std::make_shared(size)`, // but it has insufficient compiler support - auto ptr = std::shared_ptr(new (std::nothrow) char[size]); + auto ptr = std::shared_ptr(new char[size]); if (std::ifstream fs(path, std::ios::binary); !fs) { // LCOV_EXCL_START