Remove unused variables. No functionality change.
llvm-svn: 315196
This commit is contained in:
parent
2c742f919a
commit
c24fb0718d
|
@ -5671,7 +5671,6 @@ std::string ASTContext::getObjCEncodingForBlock(const BlockExpr *Expr) const {
|
|||
// Compute size of all parameters.
|
||||
// Start with computing size of a pointer in number of bytes.
|
||||
// FIXME: There might(should) be a better way of doing this computation!
|
||||
SourceLocation Loc;
|
||||
CharUnits PtrSize = getTypeSizeInChars(VoidPtrTy);
|
||||
CharUnits ParmOffset = PtrSize;
|
||||
for (auto PI : Decl->parameters()) {
|
||||
|
@ -5779,7 +5778,6 @@ std::string ASTContext::getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl,
|
|||
// Compute size of all parameters.
|
||||
// Start with computing size of a pointer in number of bytes.
|
||||
// FIXME: There might(should) be a better way of doing this computation!
|
||||
SourceLocation Loc;
|
||||
CharUnits PtrSize = getTypeSizeInChars(VoidPtrTy);
|
||||
// The first two arguments (self and _cmd) are pointers; account for
|
||||
// their size.
|
||||
|
|
|
@ -3625,7 +3625,6 @@ recurse:
|
|||
if (const Expr *Base = PDE->getBase())
|
||||
mangleMemberExprBase(Base, PDE->isArrow());
|
||||
NestedNameSpecifier *Qualifier = PDE->getQualifier();
|
||||
QualType ScopeType;
|
||||
if (TypeSourceInfo *ScopeInfo = PDE->getScopeTypeInfo()) {
|
||||
if (Qualifier) {
|
||||
mangleUnresolvedPrefix(Qualifier,
|
||||
|
|
|
@ -6886,8 +6886,6 @@ void CGOpenMPRuntime::emitTargetCall(CodeGenFunction &CGF,
|
|||
for (CapturedStmt::const_capture_iterator CI = CS.capture_begin(),
|
||||
CE = CS.capture_end();
|
||||
CI != CE; ++CI, ++RI, ++CV) {
|
||||
QualType Ty;
|
||||
|
||||
CurBasePointers.clear();
|
||||
CurPointers.clear();
|
||||
CurSizes.clear();
|
||||
|
|
|
@ -1354,7 +1354,6 @@ ExprResult Parser::ParseCXXCasts() {
|
|||
if (ExpectAndConsume(tok::greater))
|
||||
return ExprError(Diag(LAngleBracketLoc, diag::note_matching) << tok::less);
|
||||
|
||||
SourceLocation LParenLoc, RParenLoc;
|
||||
BalancedDelimiterTracker T(*this, tok::l_paren);
|
||||
|
||||
if (T.expectAndConsume(diag::err_expected_lparen_after, CastName))
|
||||
|
|
|
@ -15345,7 +15345,6 @@ EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum,
|
|||
if (Enum->isDependentType() || Val->isTypeDependent())
|
||||
EltTy = Context.DependentTy;
|
||||
else {
|
||||
SourceLocation ExpLoc;
|
||||
if (getLangOpts().CPlusPlus11 && Enum->isFixed() &&
|
||||
!getLangOpts().MSVCCompat) {
|
||||
// C++11 [dcl.enum]p5: If the underlying type is fixed, [...] the
|
||||
|
|
|
@ -6166,7 +6166,6 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param,
|
|||
// -- an integral constant-expression of integral or enumeration
|
||||
// type; or
|
||||
// -- the name of a non-type template-parameter; or
|
||||
SourceLocation NonConstantLoc;
|
||||
llvm::APSInt Value;
|
||||
if (!ArgType->isIntegralOrEnumerationType()) {
|
||||
Diag(Arg->getLocStart(),
|
||||
|
|
|
@ -1685,7 +1685,6 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(FunctionDecl *D,
|
|||
Params[P]->setOwningFunction(Function);
|
||||
Function->setParams(Params);
|
||||
|
||||
SourceLocation InstantiateAtPOI;
|
||||
if (TemplateParams) {
|
||||
// Our resulting instantiation is actually a function template, since we
|
||||
// are substituting only the outer template parameters. For example, given
|
||||
|
|
|
@ -4199,7 +4199,6 @@ TreeTransform<Derived>::TransformTypeWithDeducedTST(TypeSourceInfo *DI) {
|
|||
TypeLoc TL = DI->getTypeLoc();
|
||||
TLB.reserve(TL.getFullDataSize());
|
||||
|
||||
Qualifiers Quals;
|
||||
auto QTL = TL.getAs<QualifiedTypeLoc>();
|
||||
if (QTL)
|
||||
TL = QTL.getUnqualifiedLoc();
|
||||
|
|
|
@ -314,7 +314,6 @@ TEST_F(BinaryStreamTest, MutableBinaryByteStreamBounds) {
|
|||
|
||||
// For every combination of input stream and output stream.
|
||||
for (auto &Stream : Streams) {
|
||||
MutableArrayRef<uint8_t> Buffer;
|
||||
ASSERT_EQ(InputData.size(), Stream.Input->getLength());
|
||||
|
||||
// 1. Try two reads that are supposed to work. One from offset 0, and one
|
||||
|
@ -355,7 +354,6 @@ TEST_F(BinaryStreamTest, FixedStreamArray) {
|
|||
initializeInput(IntBytes, alignof(uint32_t));
|
||||
|
||||
for (auto &Stream : Streams) {
|
||||
MutableArrayRef<uint8_t> Buffer;
|
||||
ASSERT_EQ(InputData.size(), Stream.Input->getLength());
|
||||
|
||||
FixedStreamArray<uint32_t> Array(*Stream.Input);
|
||||
|
|
Loading…
Reference in New Issue