[all-commits] [llvm/llvm-project] 7de7c4: [MemLoc] Use hasValue() method (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Nov 19 12:55:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7de7c40898a8f815d661781c92757f93fa4c6e5b
      https://github.com/llvm/llvm-project/commit/7de7c40898a8f815d661781c92757f93fa4c6e5b
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-11-19 (Thu, 19 Nov 2020)

  Changed paths:
    M llvm/lib/Analysis/BasicAliasAnalysis.cpp
    M llvm/lib/Analysis/CFLAndersAliasAnalysis.cpp

  Log Message:
  -----------
  [MemLoc] Use hasValue() method (NFC)

Instead of comparing to LocationSize::unknown(), prefer calling
the hasValue() method instead, which is less reliant on
implementation details.




More information about the All-commits mailing list