mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-02 08:21:29 +02:00
[svn r177] moved variable for interface info type from being local static to being within IRState
This commit is contained in:
@@ -1789,9 +1789,8 @@ void DtoAnnotation(const char* str)
|
||||
|
||||
const llvm::StructType* DtoInterfaceInfoType()
|
||||
{
|
||||
static const llvm::StructType* t = NULL;
|
||||
if (t)
|
||||
return t;
|
||||
if (gIR->interfaceInfoType)
|
||||
return gIR->interfaceInfoType;
|
||||
|
||||
// build interface info type
|
||||
std::vector<const llvm::Type*> types;
|
||||
@@ -1808,7 +1807,7 @@ const llvm::StructType* DtoInterfaceInfoType()
|
||||
// int offset
|
||||
types.push_back(llvm::Type::Int32Ty);
|
||||
// create type
|
||||
t = llvm::StructType::get(types);
|
||||
gIR->interfaceInfoType = llvm::StructType::get(types);
|
||||
|
||||
return t;
|
||||
return gIR->interfaceInfoType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user