forked from OSchip/llvm-project
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:
parent
87d2f7463f
commit
fe3578650c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue