Make TypeBuilder's result depend on the LLVMContext it's passed.
authorJeffrey Yasskin <jyasskin@google.com>
Wed, 9 Sep 2009 05:04:01 +0000 (05:04 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Wed, 9 Sep 2009 05:04:01 +0000 (05:04 +0000)
commit4a38930a4595d94b1f379d6955c531c48e5c2aa0
treec8225ef9578297ee6afe1a1f170aef18e222384c
parent6be47fba53d3650ff9c1e4b7f8aea0e642186fc4
Make TypeBuilder's result depend on the LLVMContext it's passed.
TypeBuilder was using a local static variable to cache its result. This made it
ignore changes in its LLVMContext argument and always return a type constructed
from the argument to the first call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81316 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/TypeBuilder.h
unittests/Support/TypeBuilderTest.cpp