aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}