]> granicus.if.org Git - clang/commitdiff
SVal::getAsSymbol(bool IncludeBaseRegions): Follow clang/StaticAnalyzer/Core/PathSens...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 12 Oct 2017 09:42:12 +0000 (09:42 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 12 Oct 2017 09:42:12 +0000 (09:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315572 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/SVals.cpp

index 9f2af3ffa709776277d0e83e61ec0fe48f6f6d35..a83421426a1314a2c716b68ed4e5253afc0a0b4a 100644 (file)
@@ -113,12 +113,12 @@ SymbolRef SVal::getLocSymbolInBase() const {
 /// Casts are ignored during lookup.
 /// \param IncludeBaseRegions The boolean that controls whether the search
 /// should continue to the base regions if the region is not symbolic.
-SymbolRef SVal::getAsSymbol(bool IncludeBaseRegion) const {
+SymbolRef SVal::getAsSymbol(bool IncludeBaseRegions) const {
   // FIXME: should we consider SymbolRef wrapped in CodeTextRegion?
   if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
     return X->getSymbol();
 
-  return getAsLocSymbol(IncludeBaseRegion);
+  return getAsLocSymbol(IncludeBaseRegions);
 }
 
 /// getAsSymbolicExpression - If this Sval wraps a symbolic expression then