HomePhabricator

[analyzer] [NFC] Simplify SVal::getAsLocSymbol function using existing functions

Authored by ASDenysPetrov on Oct 26 2020, 7:59 AM.

Description

[analyzer] [NFC] Simplify SVal::getAsLocSymbol function using existing functions

Summary: Method of obtaining MemRegion from LocAsInteger/MemRegionVal already exists in SVal::getAsRegion function. Replace repetitive conditions in SVal::getAsLocSymbol with SVal::getAsRegion function.

Differential Revision: https://reviews.llvm.org/D89982