mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
Replace a dyn_cast with a cast when we know the exact type
llvm-svn: 58330
This commit is contained in:
parent
4068a7f31e
commit
d984d30731
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user