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