Skip to content
Snippets Groups Projects
Select Git revision
  • 723411114176b97fe8cc93358cd094218efa5d24
  • inf4_40 default protected
2 results

MemRegion.cpp

Blame
    • Hans Wennborg's avatar
      72341111
      Merging r292800: · 72341111
      Hans Wennborg authored
      ------------------------------------------------------------------------
      r292800 | dergachev | 2017-01-23 08:57:11 -0800 (Mon, 23 Jan 2017) | 13 lines
      
      [analyzer] Fix memory space of static locals seen from nested blocks.
      
      When a block within a function accesses a function's static local variable,
      this local is captured by reference rather than copied to the heap.
      
      Therefore this variable's memory space is known: StaticGlobalSpaceRegion.
      Used to be UnknownSpaceRegion, same as for stack locals.
      
      Fixes a false positive in MacOSXAPIChecker.
      
      rdar://problem/30105546
      Differential revision: https://reviews.llvm.org/D28946
      
      ------------------------------------------------------------------------
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@292858 91177308-0d34-0410-b5e6-96231b3b80d8
      72341111
      History
      Merging r292800:
      Hans Wennborg authored
      ------------------------------------------------------------------------
      r292800 | dergachev | 2017-01-23 08:57:11 -0800 (Mon, 23 Jan 2017) | 13 lines
      
      [analyzer] Fix memory space of static locals seen from nested blocks.
      
      When a block within a function accesses a function's static local variable,
      this local is captured by reference rather than copied to the heap.
      
      Therefore this variable's memory space is known: StaticGlobalSpaceRegion.
      Used to be UnknownSpaceRegion, same as for stack locals.
      
      Fixes a false positive in MacOSXAPIChecker.
      
      rdar://problem/30105546
      Differential revision: https://reviews.llvm.org/D28946
      
      ------------------------------------------------------------------------
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@292858 91177308-0d34-0410-b5e6-96231b3b80d8
    README.md 504 B