Do not use getGlobalContext()... ever.
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 14 Apr 2016 04:36:40 +0000 (04:36 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 14 Apr 2016 04:36:40 +0000 (04:36 +0000)
commit867e91468baf1eac9c04a64c72107a8ac65bb8f6
treedd6b5c13bf8a1c710a298e6d2f429c663a70a8a7
parent2f5f100e72fed8cd059949f7b6ba858d680531fb
Do not use getGlobalContext()... ever.

This code was creating a new type in the global context, regardless
of which context the user is sitting in, what can possibly go wrong?

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266275
llvm/lib/Target/X86/X86TargetTransformInfo.cpp