[cfe-commits] r128877 - /cfe/trunk/lib/Sema/SemaChecking.cpp
Chandler Carruth
chandlerc at gmail.com
Mon Apr 4 23:47:57 PDT 2011
Author: chandlerc
Date: Tue Apr 5 01:47:57 2011
New Revision: 128877
URL: http://llvm.org/viewvc/llvm-project?rev=128877&view=rev
Log:
Refactor one helper function to merely forward to another so that there
is a single implementation. No functionality change intended.
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=128877&r1=128876&r2=128877&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Tue Apr 5 01:47:57 2011
@@ -2744,19 +2744,18 @@
}
/// Diagnose an implicit cast; purely a helper for CheckImplicitConversion.
-void DiagnoseImpCast(Sema &S, Expr *E, QualType T, SourceLocation CContext,
- unsigned diag) {
- S.Diag(E->getExprLoc(), diag)
- << E->getType() << T << E->getSourceRange() << SourceRange(CContext);
-}
-
-/// Diagnose an implicit cast; purely a helper for CheckImplicitConversion.
void DiagnoseImpCast(Sema &S, Expr *E, QualType SourceType, QualType T,
SourceLocation CContext, unsigned diag) {
S.Diag(E->getExprLoc(), diag)
<< SourceType << T << E->getSourceRange() << SourceRange(CContext);
}
+/// Diagnose an implicit cast; purely a helper for CheckImplicitConversion.
+void DiagnoseImpCast(Sema &S, Expr *E, QualType T, SourceLocation CContext,
+ unsigned diag) {
+ DiagnoseImpCast(S, E, E->getType(), T, CContext, diag);
+}
+
std::string PrettyPrintInRange(const llvm::APSInt &Value, IntRange Range) {
if (!Range.Width) return "0";
More information about the cfe-commits
mailing list