commit | cffecd08f1974dc7cc328bd620b2f69daf442fda | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Nov 12 16:49:45 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Nov 12 16:49:45 2009 +0000 |
tree | fc937d2b4d338a4509ddd028ecb0c8e751797ede | |
parent | 11de6de25a0110cd7be97eef761ef3b189781da6 [diff] |
Give CanQual<T> an implicit conversion to bool, so that it can be used in "if" statements like: if (CanQual<ReferenceType> RefType = T.getAs<ReferenceType>()) Thanks to Clang for pointing out this mistake :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86995 91177308-0d34-0410-b5e6-96231b3b80d8