[all-commits] [llvm/llvm-project] 32efb8: [analyzer] [NFC] Simplify SVal::getAsLocSymbol fun...

Denys Petrov via All-commits all-commits at lists.llvm.org
Mon Oct 26 08:00:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 32efb81ea60a9e99571923bf9308598f6cd341f2
      https://github.com/llvm/llvm-project/commit/32efb81ea60a9e99571923bf9308598f6cd341f2
  Author: Denys Petrov <dpetrov at accesssoftek.com>
  Date:   2020-10-26 (Mon, 26 Oct 2020)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/SVals.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list