]> granicus.if.org Git - llvm/commit
Fix use-after-free found by ASAN
authorSteven Wu <stevenwu@apple.com>
Mon, 20 Feb 2017 18:33:40 +0000 (18:33 +0000)
committerSteven Wu <stevenwu@apple.com>
Mon, 20 Feb 2017 18:33:40 +0000 (18:33 +0000)
commitacfd73b22c058e73c73684d227ab278935c9c21c
tree3329674309ca7166d46374d9c7a644b65b90a725
parentcce48e320dd4b0a453da01ea6e5e6da9a8f0af4e
Fix use-after-free found by ASAN

DenseMap::lookup returns copy of the value in the map. Returning the
address of the temporary return value will cause use-after-free.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295675 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/DebugCounter.h