[cfe-commits] r95820 - in /cfe/trunk: include/clang/AST/Attr.h lib/AST/AttrImpl.cpp lib/Sema/TargetAttributesSema.cpp test/Sema/x86-attr-force-align-arg-pointer.c

Anton Korobeynikov anton at korobeynikov.info
Wed Feb 10 15:15:31 PST 2010


Hi, Charles

> +  ValueDecl* VD = dyn_cast<ValueDecl>(D);
You either need a check of NULL here, or use cast<>

> +  if(VD->getType()->isFunctionPointerType())
Space after "if"

> +  if(!isa<FunctionDecl>(D)) {
Same here

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the cfe-commits mailing list