mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Rename Ptr<T> to Nonnull<T*> (#832)
Note that ptr.h also includes an enable_if change, to help avoid https://bugs.llvm.org/show_bug.cgi?id=51881
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace Carbon {
|
||||
|
||||
auto Parse(Ptr<Arena> arena, const std::string& input_file_name)
|
||||
auto Parse(Nonnull<Arena*> arena, const std::string& input_file_name)
|
||||
-> std::variant<AST, SyntaxErrorCode> {
|
||||
FILE* input_file = fopen(input_file_name.c_str(), "r");
|
||||
if (input_file == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user