diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-17 05:57:07 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-10-17 05:57:07 +0000 |
commit | 1c96b24285d05c0eac455ae96d7c9ff43d42bc96 (patch) | |
tree | 4d2ab34daff9c66fe996657201955fb24de6cd84 /lib/Analysis/CheckNSError.cpp | |
parent | ef8b28e9459e729b7bd8c826d204621b039611fa (diff) |
This patch did the following renaming. There should be no functional changes.
RVal => SVal
LVal => Loc
NonLVal => NonLoc
lval => loc
nonlval => nonloc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckNSError.cpp')
-rw-r--r-- | lib/Analysis/CheckNSError.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/CheckNSError.cpp b/lib/Analysis/CheckNSError.cpp index 6e52dd952d..38d32a731d 100644 --- a/lib/Analysis/CheckNSError.cpp +++ b/lib/Analysis/CheckNSError.cpp @@ -216,11 +216,11 @@ void NSErrorCheck::CheckParamDeref(VarDecl* Param, GRStateRef rootState, GRExprEngine& Eng, GRBugReporter& BR, bool isNSErrorWarning) { - RVal ParamRVal = rootState.GetLValue(Param); + SVal ParamSVal = rootState.GetLValue(Param); - // FIXME: For now assume that ParamRVal is symbolic. We need to generalize + // FIXME: For now assume that ParamSVal is symbolic. We need to generalize // this later. - lval::SymbolVal* SV = dyn_cast<lval::SymbolVal>(&ParamRVal); + loc::SymbolVal* SV = dyn_cast<loc::SymbolVal>(&ParamSVal); if (!SV) return; // Iterate over the implicit-null dereferences. @@ -228,8 +228,8 @@ void NSErrorCheck::CheckParamDeref(VarDecl* Param, GRStateRef rootState, E=Eng.implicit_null_derefs_end(); I!=E; ++I) { GRStateRef state = GRStateRef((*I)->getState(), Eng.getStateManager()); - const RVal* X = state.get<GRState::NullDerefTag>(); - const lval::SymbolVal* SVX = dyn_cast_or_null<lval::SymbolVal>(X); + const SVal* X = state.get<GRState::NullDerefTag>(); + const loc::SymbolVal* SVX = dyn_cast_or_null<loc::SymbolVal>(X); if (!SVX || SVX->getSymbol() != SV->getSymbol()) continue; // Emit an error. |