[cfe-commits] r126559 - /cfe/trunk/tools/driver/cc1_main.cpp

Frits van Bommel fvbommel at gmail.com
Sat Feb 26 15:35:07 PST 2011


On Sun, Feb 27, 2011 at 12:17 AM, Daniel Dunbar <daniel at zuster.org> wrote:
> -    if (Clang->getFrontendOpts().ShowStats)
> +    if (llvm::AreStatisticsEnabled || Clang->getFrontendOpts().ShowStats)
>       llvm::PrintStatistics();

Since llvm::AreStatisticsEnabled() is a function, spelling it without
parentheses takes a function pointer to it. That in turn means this
condition will always be true since that function pointer isn't NULL.




More information about the cfe-commits mailing list