Resolve unused variable 'VR' warning in RetainCountChecker.cpp

Getting rid of
  error: unused variable 'VR' [-Werror,-Wunused-variable]
warning/error at
  lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp:1933

llvm-svn: 327802
This commit is contained in:
Bjorn Pettersson 2018-03-18 16:07:20 +00:00
parent 87d2f7463f
commit fe3578650c
1 changed files with 1 additions and 1 deletions

View File

@ -1931,7 +1931,7 @@ static bool isNumericLiteralExpression(const Expr *E) {
static Optional<std::string> describeRegion(const MemRegion *MR) { static Optional<std::string> describeRegion(const MemRegion *MR) {
if (const auto *VR = dyn_cast_or_null<VarRegion>(MR)) if (const auto *VR = dyn_cast_or_null<VarRegion>(MR))
return std::string(cast<VarRegion>(MR)->getDecl()->getName()); return std::string(VR->getDecl()->getName());
// Once we support more storage locations for bindings, // Once we support more storage locations for bindings,
// this would need to be improved. // this would need to be improved.
return None; return None;