[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.

llvm-svn: 160375
This commit is contained in:
Jordan Rose 2012-07-17 17:27:10 +00:00
parent 2ce88ef9a7
commit c4e9d56268
1 changed files with 2 additions and 10 deletions

View File

@ -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;
}