Before it was the negation of hasAutoStorage(), which is incorrect.
"Register" storage for Decls do not indicate global variables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47630
91177308-0d34-0410-b5e6-
96231b3b80d8
/// hasGlobalStorage - Returns true for all variables that do not
/// have local storage. This includs all global variables as well
/// as static variables declared within a function.
- bool hasGlobalStorage() const { return !hasAutoStorage(); }
+ bool hasGlobalStorage() const { return !hasLocalStorage(); }
// Implement isa/cast/dyncast/etc.
static bool classof(const Decl *D) {