diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-11 23:33:05 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-11 23:33:05 +0000 |
commit | 56aeb40b1ca136cfd68fdbaf87f971eaf1c7a4af (patch) | |
tree | 971fb719b80bee55d49417084fae50e0764d9800 /lib/Sema/SemaDeclAttr.cpp | |
parent | 1731e202b268bfcd883710e2b10fe44a869bbcb7 (diff) |
Style tweak to the more idiomatic 'assert(!bad_state())'.
Patch by Caitlin Sadowski.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 3548fa2f6c..61b7b3ee05 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -812,7 +812,7 @@ static void handleMayAliasAttr(Sema &S, Decl *D, const AttributeList &Attr) { } static void handleNoCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) { - assert(Attr.isInvalid() == false); + assert(!Attr.isInvalid()); if (isa<VarDecl>(D)) D->addAttr(::new (S.Context) NoCommonAttr(Attr.getLoc(), S.Context)); else @@ -821,7 +821,7 @@ static void handleNoCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) { } static void handleCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) { - assert(Attr.isInvalid() == false); + assert(!Attr.isInvalid()); if (isa<VarDecl>(D)) D->addAttr(::new (S.Context) CommonAttr(Attr.getLoc(), S.Context)); else @@ -2492,7 +2492,7 @@ static void handleCallConvAttr(Sema &S, Decl *D, const AttributeList &Attr) { } static void handleOpenCLKernelAttr(Sema &S, Decl *D, const AttributeList &Attr){ - assert(Attr.isInvalid() == false); + assert(!Attr.isInvalid()); D->addAttr(::new (S.Context) OpenCLKernelAttr(Attr.getLoc(), S.Context)); } |