[LLDB][NFC] Fix LLDB_WATCH_TYPE_IS_VALID macro
authorSlava Gurevich <sgurevich@gmail.com>
Tue, 2 Aug 2022 08:33:01 +0000 (01:33 -0700)
committerSlava Gurevich <sgurevich@gmail.com>
Tue, 2 Aug 2022 20:05:29 +0000 (13:05 -0700)
commit0a569274cb3b10401593ebd6eef01b74abbf4504
tree9d110742635f57160701ab41f2930224ec2305c8
parentce3d0e87ac23ce4c2be8a3b99c3020f930d7ba16
[LLDB][NFC] Fix LLDB_WATCH_TYPE_IS_VALID macro

LLDB_WATCH_TYPE_IS_VALID would always return true when validating watchpoint type
by using bitwise-or instead of bitwise-and to apply validation flags.

Differential Revision: https://reviews.llvm.org/D130972
lldb/include/lldb/lldb-defines.h