diff --git a/clang/lib/CIR/CodeGen/TargetInfo.cpp b/clang/lib/CIR/CodeGen/TargetInfo.cpp index d7084303ef05..4500b60a8319 100644 --- a/clang/lib/CIR/CodeGen/TargetInfo.cpp +++ b/clang/lib/CIR/CodeGen/TargetInfo.cpp @@ -12,15 +12,6 @@ using namespace clang; using namespace clang::CIRGen; -static bool testIfIsVoidTy(QualType Ty) { - const auto *BT = Ty->getAs(); - if (!BT) - return false; - - BuiltinType::Kind k = BT->getKind(); - return k == BuiltinType::Void; -} - static bool isAggregateTypeForABI(QualType T) { return !CIRGenFunction::hasScalarEvaluationKind(T) || T->isMemberFunctionPointerType();