[cfe-commits] r136581 - in /cfe/trunk/lib: Basic/Targets.cpp StaticAnalyzer/Checkers/PthreadLockChecker.cpp StaticAnalyzer/Core/ExprEngine.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Jul 30 18:06:41 PDT 2011
Author: d0k
Date: Sat Jul 30 20:06:41 2011
New Revision: 136581
URL: http://llvm.org/viewvc/llvm-project?rev=136581&view=rev
Log:
Remove dead code flagged by GCC's -Wunused-but-set-variable.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=136581&r1=136580&r2=136581&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sat Jul 30 20:06:41 2011
@@ -1705,9 +1705,6 @@
MacroBuilder &Builder) const {
// RTEMS defines; list based off of gcc output
- // FIXME: Move version number handling to llvm::Triple.
- StringRef Release = Triple.getOSName().substr(strlen("rtems"), 1);
-
Builder.defineMacro("__rtems__");
Builder.defineMacro("__ELF__");
}
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp?rev=136581&r1=136580&r2=136581&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp Sat Jul 30 20:06:41 2011
@@ -111,8 +111,6 @@
DefinedSVal retVal = cast<DefinedSVal>(X);
- llvm::ImmutableList<const MemRegion*> LS = state->get<LockSet>();
-
if (state->contains<LockSet>(lockR)) {
if (!BT_doublelock)
BT_doublelock.reset(new BugType("Double locking", "Lock checker"));
Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp?rev=136581&r1=136580&r2=136581&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp Sat Jul 30 20:06:41 2011
@@ -1661,13 +1661,6 @@
void ExprEngine::VisitCallExpr(const CallExpr* CE, ExplodedNode* Pred,
ExplodedNodeSet& dst) {
-
- // Determine the type of function we're calling (if available).
- const FunctionProtoType *Proto = NULL;
- QualType FnType = CE->getCallee()->IgnoreParens()->getType();
- if (const PointerType *FnTypePtr = FnType->getAs<PointerType>())
- Proto = FnTypePtr->getPointeeType()->getAs<FunctionProtoType>();
-
// Perform the previsit of the CallExpr.
ExplodedNodeSet dstPreVisit;
getCheckerManager().runCheckersForPreStmt(dstPreVisit, Pred, CE, *this);
More information about the cfe-commits
mailing list