-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diagnostic: Use shared_ptr for owned Source::Files
It's too easy to copy diagnostics around and lose track of Source::File ownership. Ideally we'd place the shared_ptr on the Source, but Sources are copied _very_ frequently, and we'd lose a huge amount of performance. Typically, Source::Files are owned externally. The only time we really need to hold a shared_ptr to these is when a Source::File is generated by an ICE, as the File points to the C++ source file that raised the error. Bug: chromium:1292829 Bug: tint:1383 Change-Id: I2706de8775bc3366115865b5a94785c0b2fefaae Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78782 Reviewed-by: Antonio Maiorano <[email protected]> Kokoro: Kokoro <[email protected]> Commit-Queue: Ben Clayton <[email protected]>
- Loading branch information
1 parent
e3d4197
commit e1159c7
Showing
5 changed files
with
80 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters