]> granicus.if.org Git - clang/commit
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)
commit520ca51e3a3776083c536492366026ac51792004
treebad26f3ada77f77b0678f8e40fe5f9999358102e
parent4e0630a8caccd9fd0d6e07e7efbc41fdb9734d39
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322813 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Scope.cpp