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:
Kevin Millikin 2017-03-01 16:50:24 +01:00
parent 9c340f9eb1
commit d921f94367

View file

@ -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_;