mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-16 08:56:07 +00:00

The tests that failed on a windows host have been fixed. Original message: Start setting dso_local for COFF. With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF. llvm-svn: 325940
12 lines
359 B
C
12 lines
359 B
C
// RUN: %clang_cc1 -triple arm64-windows-msvc -emit-llvm -o - %s | FileCheck %s
|
|
|
|
#include <stdarg.h>
|
|
|
|
int simple_int(va_list ap) {
|
|
// CHECK-LABEL: define dso_local i32 @simple_int
|
|
return va_arg(ap, int);
|
|
// CHECK: [[ADDR:%[a-z_0-9]+]] = bitcast i8* %argp.cur to i32*
|
|
// CHECK: [[RESULT:%[a-z_0-9]+]] = load i32, i32* [[ADDR]]
|
|
// CHECK: ret i32 [[RESULT]]
|
|
}
|