Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / AArch64 / varargs-ms.c
bloba9393d4c5ab6a82839b21ecb147793994a975f68
1 // RUN: %clang_cc1 -triple arm64-windows-msvc -emit-llvm -o - %s | FileCheck %s
3 #include <stdarg.h>
5 int simple_int(va_list ap) {
6 // CHECK-LABEL: define dso_local i32 @simple_int
7 return va_arg(ap, int);
8 // CHECK: [[RESULT:%[a-z_0-9]+]] = load i32, ptr %argp.cur
9 // CHECK: ret i32 [[RESULT]]