r195714 - Remove some unused locals
Alp Toker
alp at nuanti.com
Mon Nov 25 18:52:42 PST 2013
Author: alp
Date: Mon Nov 25 20:52:41 2013
New Revision: 195714
URL: http://llvm.org/viewvc/llvm-project?rev=195714&view=rev
Log:
Remove some unused locals
Modified:
cfe/trunk/lib/AST/ASTDiagnostic.cpp
cfe/trunk/lib/CodeGen/CGClass.cpp
Modified: cfe/trunk/lib/AST/ASTDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDiagnostic.cpp?rev=195714&r1=195713&r2=195714&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTDiagnostic.cpp (original)
+++ cfe/trunk/lib/AST/ASTDiagnostic.cpp Mon Nov 25 20:52:41 2013
@@ -1349,8 +1349,7 @@ class TemplateDiff {
FromType.getLocalUnqualifiedType() ==
ToType.getLocalUnqualifiedType()) {
Qualifiers FromQual = FromType.getLocalQualifiers(),
- ToQual = ToType.getLocalQualifiers(),
- CommonQual;
+ ToQual = ToType.getLocalQualifiers();
PrintQualifiers(FromQual, ToQual);
FromType.getLocalUnqualifiedType().print(OS, Policy);
return;
Modified: cfe/trunk/lib/CodeGen/CGClass.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGClass.cpp?rev=195714&r1=195713&r2=195714&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGClass.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGClass.cpp Mon Nov 25 20:52:41 2013
@@ -1504,7 +1504,6 @@ void CodeGenFunction::EnterDtorCleanups(
}
// Destroy direct fields.
- SmallVector<const FieldDecl *, 16> FieldDecls;
for (CXXRecordDecl::field_iterator I = ClassDecl->field_begin(),
E = ClassDecl->field_end(); I != E; ++I) {
const FieldDecl *field = *I;
More information about the cfe-commits
mailing list