commit | 7a56d8c06482bdebe71c671771da69de896868f7 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Feb 10 22:50:24 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Feb 10 22:50:24 2009 +0000 |
tree | e104ba5309f0e063de17d5f7c36829903e15411c | |
parent | 41a88311279855d9f6d2918190a9732d18f8a2df [diff] [blame] |
Handle the case where EmitBlock might be called multiple times for the same block. Fixes PR3536. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64252 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/vla.c b/test/CodeGen/vla.c index 2197ee1..beb928b 100644 --- a/test/CodeGen/vla.c +++ b/test/CodeGen/vla.c
@@ -18,3 +18,14 @@ int vla[x]; return vla[x-1]; } + +void +f(int count) +{ + int a[count]; + + do { } while (0); + + if (a[0] != 3) { + } +}