aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-07-17 17:27:10 +0000
committerJordan Rose <jordan_rose@apple.com>2012-07-17 17:27:10 +0000
commita6a1abac4701a3d08dc61070acd46b6a19be95ea (patch)
tree291a9a73a88307807c6023381116a60b9b19b8ee
parent285baac67d722beb6854f5faa45ee1aa62a7ce92 (diff)
[analyzer] Remove stale result type lvalue code.
This code has been moved around multiple times, but seems to have been obsolete ever since we started handled references like pointers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160375 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/StaticAnalyzer/Core/Calls.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/StaticAnalyzer/Core/Calls.cpp b/lib/StaticAnalyzer/Core/Calls.cpp
index cf4d188e43..4ab6b45675 100644
--- a/lib/StaticAnalyzer/Core/Calls.cpp
+++ b/lib/StaticAnalyzer/Core/Calls.cpp
@@ -38,16 +38,8 @@ SourceRange CallEvent::getArgSourceRange(unsigned Index) const {
QualType CallEvent::getResultType() const {
QualType ResultTy = getDeclaredResultType();
- if (const Expr *E = getOriginExpr()) {
- if (ResultTy.isNull())
- ResultTy = E->getType();
-
- // FIXME: This is copied from CallOrObjCMessage, but it seems suspicious.
- if (E->isGLValue()) {
- ASTContext &Ctx = State->getStateManager().getContext();
- ResultTy = Ctx.getPointerType(ResultTy);
- }
- }
+ if (ResultTy.isNull())
+ ResultTy = getOriginExpr()->getType();
return ResultTy;
}