[cfe-commits] r58330 - /cfe/trunk/lib/AST/Expr.cpp

Douglas Gregor doug.gregor at gmail.com
Tue Oct 28 08:29:51 PDT 2008


Author: dgregor
Date: Tue Oct 28 10:29:51 2008
New Revision: 58330

URL: http://llvm.org/viewvc/llvm-project?rev=58330&view=rev
Log:
Replace a dyn_cast with a cast when we know the exact type

Modified:
    cfe/trunk/lib/AST/Expr.cpp

Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=58330&r1=58329&r2=58330&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Tue Oct 28 10:29:51 2008
@@ -398,7 +398,7 @@
     //   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())





More information about the cfe-commits mailing list