[all-commits] [llvm/llvm-project] 75881d: [NFC] const-ed the return type of FunctionProperti...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Thu Apr 28 12:42:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75881d8b023ef8576afbba510c07eb8b899f2ec7
      https://github.com/llvm/llvm-project/commit/75881d8b023ef8576afbba510c07eb8b899f2ec7
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h
    M llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp

  Log Message:
  -----------
  [NFC] const-ed the return type of FunctionPropertiesAnalysis

The result is a data bag, this makes sure it's signaled to a user that
the data can't be mutated when, for example, doing something like:

auto &R = FAM.getResult<FunctionPropertiesAnalysis>(F)
...
R.Uses++




More information about the All-commits mailing list