[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:
parent
2ce88ef9a7
commit
c4e9d56268
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue