diff options
| author | Frederich Munch <colsebas@hotmail.com> | 2017-07-06 00:09:09 +0000 |
|---|---|---|
| committer | Frederich Munch <colsebas@hotmail.com> | 2017-07-06 00:09:09 +0000 |
| commit | 52dfcd18d110d5724bb894bccdd3f02675d772ae (patch) | |
| tree | b21f5f626574e9295d25cd83c037e3e76c4863f3 /lldb/packages/Python/lldbsuite/test/expression_command/macros | |
| parent | 42a96a286cdbccdc77eedfff69b9d7bc4c1b8c83 (diff) | |
| download | bcm5719-llvm-52dfcd18d110d5724bb894bccdd3f02675d772ae.tar.gz bcm5719-llvm-52dfcd18d110d5724bb894bccdd3f02675d772ae.zip | |
Avoid constructing GlobalExtensions only to find out it is empty.
Summary:
GlobalExtensions is dereferenced twice, once for iteration and then a check if it is empty.
As a ManagedStatic this dereference forces it's construction which is unnecessary.
Reviewers: efriedma, davide, mehdi_amini
Reviewed By: mehdi_amini
Subscribers: chapuni, llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D33381
llvm-svn: 307229
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/macros')
0 files changed, 0 insertions, 0 deletions

