File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
test/Target/LLVMIR/Import Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2128,7 +2128,7 @@ LogicalResult ModuleImport::processFunction(llvm::Function *func) {
2128
2128
iface.isConvertibleIntrinsic (func->getIntrinsicID ()))
2129
2129
return success ();
2130
2130
2131
- bool dsoLocal = func->hasLocalLinkage ();
2131
+ bool dsoLocal = func->isDSOLocal ();
2132
2132
CConv cconv = convertCConvFromLLVM (func->getCallingConv ());
2133
2133
2134
2134
// Insert the function at the end of the module.
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ define internal spir_func void @spir_func_internal() {
10
10
ret void
11
11
}
12
12
13
+ ; Ensure that we have dso_local;
14
+ ; CHECK : llvm.func @dsolocal_func() attributes{dso_local}
15
+ define dso_local void @dsolocal_func () {
16
+ ret void
17
+ }
18
+
13
19
; // -----
14
20
15
21
; CHECK-LABEL: @func_readnone
You can’t perform that action at this time.
0 commit comments