Skip to content
  • Anna Zaks's avatar
    [analyzer] Malloc: Utter the name of the leaked variable. · fc2e1534
    Anna Zaks authored
    Specifically, we use the last store of the leaked symbol in the leak diagnostic.
    (No support for struct fields since the malloc checker doesn't track those
    yet.)
    
    + Infrastructure to track the regions used in store evaluations.
    This approach is more precise than iterating the store to
    obtain the region bound to the symbol, which is used in RetainCount
    checker. The region corresponds to what is uttered in the code in the
    last store and we do not rely on the store implementation to support
    this functionality.
    
    llvm-svn: 153212
    fc2e1534
Loading