forked from OSchip/llvm-project
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:
parent
9fbef51078
commit
8b8215a048
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue