mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 14:06:06 +00:00

This allows use with non-0 address space stacks. llvm_ptr_ty should never be used. This could use some more percolation up through mlir, but this is enough to fix existing tests. https://reviews.llvm.org/D156666
14 lines
231 B
C
14 lines
231 B
C
// PR691
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
|
// CHECK: call ptr @llvm.stacksave.p0()
|
|
|
|
extern void external(int[*]);
|
|
|
|
void test(int N) {
|
|
int i;
|
|
for (i = 0; i < N; ++i) {
|
|
int VLA[i];
|
|
external(VLA);
|
|
}
|
|
}
|