commit | 521c72c756be8f8b8e13d88cb651bd9fe200202f | [log] [tgz] |
---|---|---|
author | Fariborz Jahanian <fjahanian@apple.com> | Tue Sep 21 22:53:33 2010 +0000 |
committer | Fariborz Jahanian <fjahanian@apple.com> | Tue Sep 21 22:53:33 2010 +0000 |
tree | 4420277695df27b442111be0c7aba21aa16f7ad9 | |
parent | 61158f98ab50402652d81c4fdb80631751913793 [diff] [blame] |
Fixes an IRgen ICE due to cast of null pointer to a vla type (fixes pr7827). llvm-svn: 114495
diff --git a/clang/test/CodeGen/vla.c b/clang/test/CodeGen/vla.c index 1770472..8011497 100644 --- a/clang/test/CodeGen/vla.c +++ b/clang/test/CodeGen/vla.c
@@ -50,3 +50,12 @@ } // CHECK: call void @llvm.stackrestore(i8* } + +// pr7827 +void function(short width, int data[][width]) {} + +void test() { + // CHECK: call void @function(i16 signext 1, i32* null) + function(1, 0); +} +