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 @@ -2106,7 +2106,7 @@ LogicalResult ModuleImport::processFunction(llvm::Function *func) {
2106
2106
iface.isConvertibleIntrinsic (func->getIntrinsicID ()))
2107
2107
return success ();
2108
2108
2109
- bool dsoLocal = func->hasLocalLinkage ();
2109
+ bool dsoLocal = func->isDSOLocal ();
2110
2110
CConv cconv = convertCConvFromLLVM (func->getCallingConv ());
2111
2111
2112
2112
// 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