Fix Scope::dump()
authorRichard Trieu <rtrieu@google.com>
Thu, 18 Jan 2018 04:28:56 +0000 (04:28 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 18 Jan 2018 04:28:56 +0000 (04:28 +0000)
commitdf5ec0756c0d680396cf5b2f48e114740d2b2987
tree60dc5bc3be72264caa5be71e17769d2ed8e7ab98
parent1903976d37868f8e13e60e44b77a71b5ede04bed
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
clang/lib/Sema/Scope.cpp