[cfe-commits] r147260 - in /cfe/trunk/lib: ARCMigrate/FileRemapper.cpp Frontend/ASTUnit.cpp Parse/ParseExprCXX.cpp Sema/SemaDecl.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sat Dec 24 17:18:53 PST 2011
Author: rafael
Date: Sat Dec 24 19:18:52 2011
New Revision: 147260
URL: http://llvm.org/viewvc/llvm-project?rev=147260&view=rev
Log:
Remove unused variables.
Modified:
cfe/trunk/lib/ARCMigrate/FileRemapper.cpp
cfe/trunk/lib/Frontend/ASTUnit.cpp
cfe/trunk/lib/Parse/ParseExprCXX.cpp
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/ARCMigrate/FileRemapper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/FileRemapper.cpp?rev=147260&r1=147259&r2=147260&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/FileRemapper.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/FileRemapper.cpp Sat Dec 24 19:18:52 2011
@@ -61,8 +61,7 @@
std::vector<std::pair<const FileEntry *, const FileEntry *> > pairs;
llvm::OwningPtr<llvm::MemoryBuffer> fileBuf;
- if (llvm::error_code ec = llvm::MemoryBuffer::getFile(infoFile.c_str(),
- fileBuf))
+ if (llvm::MemoryBuffer::getFile(infoFile.c_str(), fileBuf))
return report("Error opening file: " + infoFile, Diag);
SmallVector<StringRef, 64> lines;
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=147260&r1=147259&r2=147260&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Sat Dec 24 19:18:52 2011
@@ -2406,7 +2406,7 @@
if (Out.has_error())
return CXSaveError_Unknown;
- if (llvm::error_code ec = llvm::sys::fs::rename(TempPath.str(), File)) {
+ if (llvm::sys::fs::rename(TempPath.str(), File)) {
bool exists;
llvm::sys::fs::remove(TempPath.str(), exists);
return CXSaveError_Unknown;
Modified: cfe/trunk/lib/Parse/ParseExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExprCXX.cpp?rev=147260&r1=147259&r2=147260&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExprCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExprCXX.cpp Sat Dec 24 19:18:52 2011
@@ -785,7 +785,7 @@
Scope::BreakScope | Scope::ContinueScope |
Scope::DeclScope);
- StmtResult Stmt(ParseCompoundStatementBody());
+ ParseCompoundStatementBody();
BodyScope.Exit();
} else {
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=147260&r1=147259&r2=147260&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sat Dec 24 19:18:52 2011
@@ -6527,7 +6527,6 @@
Diag(var->getLocation(), diag::warn_global_constructor)
<< Init->getSourceRange();
- QualType Type = var->getType();
if (var->isConstexpr()) {
llvm::SmallVector<PartialDiagnosticAt, 8> Notes;
if (!var->evaluateValue(Notes) || !var->isInitICE()) {
More information about the cfe-commits
mailing list