From: Fariborz Jahanian Date: Wed, 8 May 2013 20:29:57 +0000 (+0000) Subject: Turn off a warning caused by my last patch. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abbfa671539c74b5bec66a64964de984c908cdfa;p=clang Turn off a warning caused by my last patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181464 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/CommentLexer.cpp b/lib/AST/CommentLexer.cpp index a59badaeaf..b195d52e8e 100644 --- a/lib/AST/CommentLexer.cpp +++ b/lib/AST/CommentLexer.cpp @@ -355,7 +355,7 @@ void Lexer::lexCommentText(Token &T) { if (!Info) { formTokenWithChars(T, TokenPtr, tok::unknown_command); T.setUnknownCommandName(CommandName); - if (Info = Traits.getTypoCorrectCommandInfo(CommandName)) { + if ((Info = Traits.getTypoCorrectCommandInfo(CommandName))) { StringRef CorrectedName = Info->Name; SourceRange CommandRange(T.getLocation().getLocWithOffset(1), T.getEndLocation());