mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +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:
@@ -18,7 +18,7 @@ class SourceLocation {
|
||||
// The filename should be eternal or arena-allocated to eliminate copies.
|
||||
SourceLocation(const char* filename, int line_num)
|
||||
: filename(filename), line_num(line_num) {}
|
||||
SourceLocation(Ptr<const std::string> filename, int line_num)
|
||||
SourceLocation(Nonnull<const std::string*> filename, int line_num)
|
||||
: filename(filename->c_str()), line_num(line_num) {}
|
||||
|
||||
SourceLocation(const SourceLocation&) = default;
|
||||
|
||||
Reference in New Issue
Block a user