Skip to content

Commit cd67c77

Browse files
committed
use "llvm.prefetch.p0" instead of "llvm.prefetch"
LLVM updated the name, the old one still works but stdarch is now using the new one
1 parent f516eb4 commit cd67c77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/intrinsic/llvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ pub fn intrinsic<'gcc, 'tcx>(name: &str, cx: &CodegenCx<'gcc, 'tcx>) -> Function
10441044
#[cfg(feature = "master")]
10451045
pub fn intrinsic<'gcc, 'tcx>(name: &str, cx: &CodegenCx<'gcc, 'tcx>) -> Function<'gcc> {
10461046
let gcc_name = match name {
1047-
"llvm.prefetch" => {
1047+
"llvm.prefetch.p0" => {
10481048
let gcc_name = "__builtin_prefetch";
10491049
let func = cx.context.get_builtin_function(gcc_name);
10501050
cx.functions.borrow_mut().insert(gcc_name.to_string(), func);

0 commit comments

Comments
 (0)