diff options
author | Richard Trieu <rtrieu@google.com> | 2018-01-18 04:28:56 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2018-01-18 04:28:56 +0000 |
commit | df5ec0756c0d680396cf5b2f48e114740d2b2987 (patch) | |
tree | 60dc5bc3be72264caa5be71e17769d2ed8e7ab98 /llvm/unittests/ADT/ArrayRefTest.cpp | |
parent | 1903976d37868f8e13e60e44b77a71b5ede04bed (diff) | |
download | llvm-df5ec0756c0d680396cf5b2f48e114740d2b2987.zip llvm-df5ec0756c0d680396cf5b2f48e114740d2b2987.tar.gz llvm-df5ec0756c0d680396cf5b2f48e114740d2b2987.tar.bz2 |
Fix Scope::dump()
The dump function for Scope only has 20 out of the 24 flags. Since it looped
until no flags were left, having an unknown flag lead to an infinite loop.
That loop has been changed to a single pass for each flag, plus an assert to
alert if new flags are added.
llvm-svn: 322813
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions