All glory to address sanitizer. ;]
authorChandler Carruth <chandlerc@gmail.com>
Mon, 2 Jul 2012 22:56:41 +0000 (22:56 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 2 Jul 2012 22:56:41 +0000 (22:56 +0000)
commit6068c48498e9af1076b1b5f2499e176e7e9c0f34
tree8985e18a49bb4e5e37c869f95ee3e7514ee6ce65
parent769951f6cc6323821ce1e9f46a37817a541c884f
All glory to address sanitizer. ;]

It appears to have caught a use-after-free introduced as by r159567
and/or friends which call 'addPass' from many more places. The bug in
'addPass' doesn't appear to be new, and was spotted by inspection when
ASan shown a bright light of a stacktrace at these functions.

Hopefully this will fix the ASan failure -- I have no test case other
than running an ASan-built clang over the test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/Passes.cpp