mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 10:25:28 +00:00
Fix const-ness of inspector constructor.
This was changed originally, but we no longer need the module to be non-const for the Inspector. Set it back to const to fix the Chrome roll. Change-Id: I68166a7a687249cab5c344167386144554b7d175 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37221 Commit-Queue: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: dan sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
e86fd505e4
commit
c3c70f848a
@@ -46,9 +46,9 @@ namespace inspector {
|
||||
Inspector::Inspector(ast::Module& module, Namer* namer)
|
||||
: module_(module), namer_(namer), namer_is_owned_(false) {}
|
||||
|
||||
Inspector::Inspector(ast::Module& module)
|
||||
Inspector::Inspector(const ast::Module& module)
|
||||
: module_(module),
|
||||
namer_(new MangleNamer(&module)),
|
||||
namer_(new MangleNamer(&module_)),
|
||||
namer_is_owned_(true) {}
|
||||
|
||||
Inspector::~Inspector() {
|
||||
|
||||
Reference in New Issue
Block a user