1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

Make exception type indices unnamed-addr

This commit is contained in:
A. R. Shajii 2023-03-31 12:51:17 -04:00
parent 821bfb47c0
commit b3789d0a89

View File

@ -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;
}