Make exception type indices unnamed-addr

pull/335/head
A. R. Shajii 2023-03-31 12:51:17 -04:00
parent 821bfb47c0
commit b3789d0a89
1 changed files with 1 additions and 0 deletions

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