diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-05 06:47:57 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-05 06:47:57 +0000 |
commit | 7f3654f65c1e1a2e31b91c2243931f768971b4ee (patch) | |
tree | c98122753d984737548ef2108a11badc8b4fd249 /clang/lib/Sema/SemaChecking.cpp | |
parent | 584f2de0a346aba4fb93441b8b0032f703357454 (diff) | |
download | bcm5719-llvm-7f3654f65c1e1a2e31b91c2243931f768971b4ee.tar.gz bcm5719-llvm-7f3654f65c1e1a2e31b91c2243931f768971b4ee.zip |
Refactor one helper function to merely forward to another so that there
is a single implementation. No functionality change intended.
llvm-svn: 128877
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 15644c99d91..bdadf5aab81 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -2744,19 +2744,18 @@ void AnalyzeAssignment(Sema &S, BinaryOperator *E) { } /// 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"; |