Poison the relational operators ==, !=, <, <=, >=, > on llvm::Optional
authorDouglas Gregor <dgregor@apple.com>
Fri, 11 Feb 2011 18:13:20 +0000 (18:13 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 11 Feb 2011 18:13:20 +0000 (18:13 +0000)
commit78b9649d46c91f377cfc799aecb74cb017f72c36
tree70eb25ce0ffd7231639ae99cc5b06cf1274c9a97
parent71132af89a56f237bc6e18a4e1247b0fc8ee3e6b
Poison the relational operators ==, !=, <, <=, >=, > on llvm::Optional
objects, since they'll end up using the implicit conversion to "bool"
and causing some very "fun" surprises.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125380 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Optional.h