File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
test/Target/LLVMIR/Import Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2106,7 +2106,7 @@ LogicalResult ModuleImport::processFunction(llvm::Function *func) {
21062106 iface.isConvertibleIntrinsic (func->getIntrinsicID ()))
21072107 return success ();
21082108
2109- bool dsoLocal = func->hasLocalLinkage ();
2109+ bool dsoLocal = func->isDSOLocal ();
21102110 CConv cconv = convertCConvFromLLVM (func->getCallingConv ());
21112111
21122112 // Insert the function at the end of the module.
Original file line number Diff line number Diff line change 77; CHECK-NOT: res_attrs
88; CHECK-SAME: }>
99declare ptr @func_no_param_attrs ()
10+
11+ ; Ensure that we have dso_local
12+ ; CHECK: "llvm.func"()
13+ ; CHECK-SAME: <{
14+ ; CHECK-SAME: dso_local
15+ ; CHECK-SAME: "dsolocal_func"
16+ ; CHECK-SAME: }>
17+ define dso_local void @dsolocal_func () {
18+ ret void
19+ }
You can’t perform that action at this time.
0 commit comments