aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/CXXExprEngine.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2011-01-18 02:00:16 +0000
committerJeffrey Yasskin <jyasskin@google.com>2011-01-18 02:00:16 +0000
commitdec0984fce504a39a7f085774fb67cfd9957be58 (patch)
tree55173b9ff3c2a9fdc4be568145ce61ad5cb8f05e /lib/StaticAnalyzer/CXXExprEngine.cpp
parentfb1e3bc29b667f4275e1d5a43d64ec173f4f9a7d (diff)
Fix warnings found by gcc-4.6, from -Wunused-but-set-variable and
-Wint-to-pointer-cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/CXXExprEngine.cpp')
-rw-r--r--lib/StaticAnalyzer/CXXExprEngine.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/StaticAnalyzer/CXXExprEngine.cpp b/lib/StaticAnalyzer/CXXExprEngine.cpp
index 47b3a0bd06..149d4bd9ab 100644
--- a/lib/StaticAnalyzer/CXXExprEngine.cpp
+++ b/lib/StaticAnalyzer/CXXExprEngine.cpp
@@ -50,14 +50,8 @@ void ExprEngine::evalArguments(ConstExprIterator AI, ConstExprIterator AE,
// Evaluate the argument.
ExplodedNodeSet Tmp;
- bool VisitAsLvalue = FstArgAsLValue;
if (FstArgAsLValue) {
FstArgAsLValue = false;
- } else {
- const unsigned ParamIdx = Item.I - AI;
- VisitAsLvalue = FnType && ParamIdx < FnType->getNumArgs()
- ? FnType->getArgType(ParamIdx)->isReferenceType()
- : false;
}
Visit(*Item.I, Item.N, Tmp);