diff options
author | John McCall <rjmccall@apple.com> | 2010-08-26 03:08:43 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-26 03:08:43 +0000 |
commit | 8e7d656a4ad1a9a36953b47894fad841b83ee247 (patch) | |
tree | db13bc833eb9663ee9444174405d079874ce9cd2 /clang/lib/Checker/BasicStore.cpp | |
parent | f6418b804eb306568a3784f474f2dd3107d86380 (diff) | |
download | bcm5719-llvm-8e7d656a4ad1a9a36953b47894fad841b83ee247.tar.gz bcm5719-llvm-8e7d656a4ad1a9a36953b47894fad841b83ee247.zip |
De-memberify the VarDecl and FunctionDecl StorageClass enums.
This lets us remove Sema.h's dependency on Expr.h and Decl.h.
llvm-svn: 112156
Diffstat (limited to 'clang/lib/Checker/BasicStore.cpp')
-rw-r--r-- | clang/lib/Checker/BasicStore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Checker/BasicStore.cpp b/clang/lib/Checker/BasicStore.cpp index 002d4ee8358..f82e1b20be9 100644 --- a/clang/lib/Checker/BasicStore.cpp +++ b/clang/lib/Checker/BasicStore.cpp @@ -437,11 +437,11 @@ Store BasicStoreManager::BindDeclInternal(Store store, const VarRegion* VR, // will not be called more than once. // Static global variables should not be visited here. - assert(!(VD->getStorageClass() == VarDecl::Static && + assert(!(VD->getStorageClass() == SC_Static && VD->isFileVarDecl())); // Process static variables. - if (VD->getStorageClass() == VarDecl::Static) { + if (VD->getStorageClass() == SC_Static) { // C99: 6.7.8 Initialization // If an object that has static storage duration is not initialized // explicitly, then: |