mirror of https://github.com/exaloop/codon.git
Make exception type indices unnamed-addr
parent
821bfb47c0
commit
b3789d0a89
|
@ -1348,6 +1348,7 @@ llvm::GlobalVariable *LLVMVisitor::getTypeIdxVar(const std::string &name) {
|
|||
tidx = new llvm::GlobalVariable(
|
||||
*M, typeInfoType, /*isConstant=*/true, llvm::GlobalValue::PrivateLinkage,
|
||||
llvm::ConstantStruct::get(typeInfoType, B->getInt32(idx)), typeVarName);
|
||||
tidx->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::Global);
|
||||
}
|
||||
return tidx;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue