[cfe-commits] r139510 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Richard Trieu
rtrieu at google.com
Mon Sep 12 11:08:02 PDT 2011
Author: rtrieu
Date: Mon Sep 12 13:08:02 2011
New Revision: 139510
URL: http://llvm.org/viewvc/llvm-project?rev=139510&view=rev
Log:
Fix two comments from warn to emit error to match the actual diagnostic used.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=139510&r1=139509&r2=139510&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Sep 12 13:08:02 2011
@@ -5869,7 +5869,7 @@
<< 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 @@
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());
More information about the cfe-commits
mailing list