diff options
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 1376472eec..3e1ced29a8 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -2552,7 +2552,7 @@ void Sema::HandleDelayedDeprecationCheck(DelayedDiagnostic &DD, return; DD.Triggered = true; - if (strlen(DD.DeprecationData.Message)) + if (DD.DeprecationData.Message) Diag(DD.Loc, diag::warn_deprecated_message) << DD.DeprecationData.Decl->getDeclName() << DD.DeprecationData.Message; @@ -2573,7 +2573,7 @@ void Sema::EmitDeprecationWarning(NamedDecl *D, const char * Message, // Otherwise, don't warn if our current context is deprecated. if (isDeclDeprecated(cast<Decl>(CurContext))) return; - if (strlen(Message)) + if (Message) Diag(Loc, diag::warn_deprecated_message) << D->getDeclName() << Message; else |