mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-28 20:03:53 +01:00
Removed tautological checks.
They were probably used during initial development of the pass to be able to disable emission of the global reference by setting TD_TypeInfo to -1.
This commit is contained in:
+2
-2
@@ -328,9 +328,9 @@ void DtoResolveTypeInfo(TypeInfoDeclaration* tid)
|
||||
if (!meta && tid->tinfo->toBasetype()->ty < Terror) {
|
||||
// Construct the fields
|
||||
MDNodeField* mdVals[TD_NumFields];
|
||||
if (TD_TypeInfo >= 0)
|
||||
mdVals[TD_TypeInfo] = llvm::cast<MDNodeField>(irg->value);
|
||||
mdVals[TD_TypeInfo] = llvm::cast<MDNodeField>(irg->value);
|
||||
mdVals[TD_Type] = llvm::UndefValue::get(DtoType(tid->tinfo));
|
||||
|
||||
// Construct the metadata and insert it into the module.
|
||||
llvm::NamedMDNode* node = gIR->module->getOrInsertNamedMetadata(metaname);
|
||||
node->addOperand(llvm::MDNode::get(gIR->context(),
|
||||
|
||||
Reference in New Issue
Block a user