mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:51:03 +01:00
Drop CopyVal (#895)
Values are immutable, so they should never need to be copied.
This commit is contained in:
@@ -540,9 +540,6 @@ class StringValue : public Value {
|
||||
std::string value_;
|
||||
};
|
||||
|
||||
auto CopyVal(Nonnull<Arena*> arena, Nonnull<const Value*> val,
|
||||
SourceLocation source_loc) -> Nonnull<const Value*>;
|
||||
|
||||
auto TypeEqual(Nonnull<const Value*> t1, Nonnull<const Value*> t2) -> bool;
|
||||
auto ValueEqual(Nonnull<const Value*> v1, Nonnull<const Value*> v2,
|
||||
SourceLocation source_loc) -> bool;
|
||||
|
||||
Reference in New Issue
Block a user