[cfe-commits] r99666 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp

Douglas Gregor dgregor at apple.com
Fri Mar 26 16:25:36 PDT 2010


Author: dgregor
Date: Fri Mar 26 18:25:35 2010
New Revision: 99666

URL: http://llvm.org/viewvc/llvm-project?rev=99666&view=rev
Log:
Remove unused static function

Modified:
    cfe/trunk/lib/Sema/SemaExprCXX.cpp

Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=99666&r1=99665&r2=99666&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Fri Mar 26 18:25:35 2010
@@ -1896,23 +1896,6 @@
   return Result;
 }
 
-/// \brief Get the target type of a standard or user-defined conversion.
-static QualType TargetType(const ImplicitConversionSequence &ICS) {
-  switch (ICS.getKind()) {
-  case ImplicitConversionSequence::StandardConversion:
-    return ICS.Standard.getToType(2);
-  case ImplicitConversionSequence::UserDefinedConversion:
-    return ICS.UserDefined.After.getToType(2);
-  case ImplicitConversionSequence::AmbiguousConversion:
-    return ICS.Ambiguous.getToType();
-
-  case ImplicitConversionSequence::EllipsisConversion:
-  case ImplicitConversionSequence::BadConversion:
-    llvm_unreachable("function not valid for ellipsis or bad conversions");
-  }
-  return QualType(); // silence warnings
-}
-
 /// \brief Try to convert a type to another according to C++0x 5.16p3.
 ///
 /// This is part of the parameter validation for the ? operator. If either





More information about the cfe-commits mailing list