Fixed bug in VarDecl::hasAutoStorage: function parameters implicitly have

auto storage, but this routine would incorrectly return false.

llvm-svn: 41162
This commit is contained in:
Ted Kremenek 2007-08-18 04:59:12 +00:00
parent 9fbef51078
commit 8b8215a048
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public:
// implicitly "auto", but are represented internally with a storage
// class of None.
bool hasAutoStorage() {
return (SClass == Auto || (SClass == None && getKind() == BlockVariable));
return (SClass == Auto || (SClass == None && getKind() != FileVariable));
}
// hasStaticStorage - Returns true if either the implicit or