From: Richard Trieu Date: Mon, 12 Sep 2011 18:08:02 +0000 (+0000) Subject: Fix two comments from warn to emit error to match the actual diagnostic used. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9f1934bd0caadf5eab8dcf19671260e13a5f7fe;p=clang Fix two comments from warn to emit error to match the actual diagnostic used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 99c881fe5c..93066a288f 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -5869,7 +5869,7 @@ static void diagnoseArithmeticOnFunctionPointer(Sema &S, SourceLocation Loc, << Pointer->getSourceRange(); } -/// \brief Warn if Operand is incomplete pointer type +/// \brief Emit error if Operand is incomplete pointer type /// /// \returns True if pointer has incomplete type static bool checkArithmeticIncompletePointerType(Sema &S, SourceLocation Loc, @@ -5975,7 +5975,7 @@ static bool checkArithmethicPointerOnNonFragileABI(Sema &S, return false; } -/// \brief Warn when two pointers are incompatible. +/// \brief Emit error when two pointers are incompatible. static void diagnosePointerIncompatibility(Sema &S, SourceLocation Loc, Expr *LHSExpr, Expr *RHSExpr) { assert(LHSExpr->getType()->isAnyPointerType());