Replace a dyn_cast with a cast when we know the exact type

llvm-svn: 58330
This commit is contained in:
Douglas Gregor 2008-10-28 15:29:51 +00:00
parent 4068a7f31e
commit d984d30731

View File

@ -398,7 +398,7 @@ Expr::isLvalueResult Expr::isLvalue(ASTContext &Ctx) const {
// A function call is an lvalue if and only if the result type
// is a reference.
QualType CalleeType
= dyn_cast<CallExpr>(this)->getCallee()->IgnoreParens()->getType();
= cast<CallExpr>(this)->getCallee()->IgnoreParens()->getType();
if (const PointerType *FnTypePtr = CalleeType->getAsPointerType())
if (const FunctionType *FnType
= FnTypePtr->getPointeeType()->getAsFunctionType())