[LLVMContext] Detecting leaked instructions with metadata
authorVedant Kumar <vsk@apple.com>
Fri, 29 Jun 2018 20:13:13 +0000 (20:13 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 29 Jun 2018 20:13:13 +0000 (20:13 +0000)
commit69ee62cef82eef7d23d2c71fb133ba80cac18339
treee67b3d77738954588a9db7aa532f453a85b119e5
parent4bbb820e2229191abe9a06d254a51e7583a5d699
[LLVMContext] Detecting leaked instructions with metadata

When instructions with metadata are accidentally leaked, the result is a
difficult-to-find memory corruption in ~LLVMContextImpl that leads to
random crashes.

Patch by ArvÄ«ds Kokins!

llvm-svn: 336010
llvm/lib/IR/LLVMContextImpl.cpp