mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
Change a C++ type to avoid triggering an ASSERT.
Malloc'd memory is uninitialized so C++ constructors are not run. For class Ref, operator= asserts (basically) that the constructor has been run. BUG= R=asgerf@google.com Review-Url: https://codereview.chromium.org/2723123002 .
This commit is contained in:
parent
9c340f9eb1
commit
d921f94367
|
@ -318,7 +318,7 @@ class ReaderHelper {
|
|||
|
||||
private:
|
||||
Program* program_;
|
||||
MallocGrowableArray<Ref<CanonicalName> > canonical_names_;
|
||||
MallocGrowableArray<CanonicalName*> canonical_names_;
|
||||
BlockStack<VariableDeclaration> scope_;
|
||||
BlockStack<TypeParameter> type_parameters_;
|
||||
BlockStack<SwitchCase> switch_cases_;
|
||||
|
|
Loading…
Reference in a new issue