commit | 7392175ccd5399f5a45a5b71343c9ec4b4549833 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Fri Sep 21 15:30:45 2018 -0700 |
committer | Yi Kong <yikong@google.com> | Fri Sep 21 15:36:57 2018 -0700 |
tree | 30f40847dbdf35e2d404ce1ee288b9175862095a | |
parent | c0263aa0e4dd6ce6f39521314fa638b0a7f10d66 [diff] |
Don't use initializer_list as return type The underlying array may be cleaned up once its lifetime has ended, the initializer_list would become ill-formed. Return as std::vector instead. This fixes "-Wreturn-stack-address" (clang) / "-Winit-list-lifetime" (gcc) warning. Test: mma Bug: 111998531 Change-Id: Ie5bb6bc3d0d7689744fd573c5683b22e6fb6b178