aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-09-12 18:08:02 +0000
committerRichard Trieu <rtrieu@google.com>2011-09-12 18:08:02 +0000
commitd9f1934bd0caadf5eab8dcf19671260e13a5f7fe (patch)
tree2770e53daa882e24817bdf5855936d310266517e /lib/Sema/SemaExpr.cpp
parent7a756463ffe90f9a06c8cc8c190f22a5e4366c25 (diff)
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
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp4
1 files changed, 2 insertions, 2 deletions
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());