]> granicus.if.org Git - clang/commit
Unguarded availability diagnoser should use TraverseStmt instead of
authorAlex Lorenz <arphaman@gmail.com>
Thu, 17 Aug 2017 14:22:27 +0000 (14:22 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 17 Aug 2017 14:22:27 +0000 (14:22 +0000)
commitd4d128789d475f17fa1d04de15e491a4920f0e74
tree1e48017a54ff319b3493f9c99e515b953fbc370c
parent05fae15d08c7298a9a14bde5b50d1eafa298dee9
Unguarded availability diagnoser should use TraverseStmt instead of
Base::TraverseStmt when visiting the then/else branches of if statements

This ensures that the statement stack is correctly tracked and correct
multi-statement fixit is generated inside of an if (@available)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311088 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/FixIt/fixit-availability.mm