aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/Decl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h
index 82b8cacf95..7f7e3afa39 100644
--- a/include/clang/AST/Decl.h
+++ b/include/clang/AST/Decl.h
@@ -329,7 +329,7 @@ public:
/// 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) {