diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-07-20 21:55:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-07-20 21:55:52 +0000 |
| commit | 32ac583d91de64f5565a38b05a499b9251eb0125 (patch) | |
| tree | bc33eb247240b8ae68ee88e18f78531318c9e866 /clang/test/CodeGenCXX/new.cpp | |
| parent | 0675030cf96ce935e1014f1bd22f5704baca08b6 (diff) | |
| download | bcm5719-llvm-32ac583d91de64f5565a38b05a499b9251eb0125.tar.gz bcm5719-llvm-32ac583d91de64f5565a38b05a499b9251eb0125.zip | |
in 'new int[4]', constant fold the 4*4=16 instead of
doing an overflow check.
llvm-svn: 108943
Diffstat (limited to 'clang/test/CodeGenCXX/new.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/new.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp index fcaf2e8138b..885158f8a05 100644 --- a/clang/test/CodeGenCXX/new.cpp +++ b/clang/test/CodeGenCXX/new.cpp @@ -102,6 +102,7 @@ struct Empty { }; // We don't need to initialize an empty class. void t12() { // CHECK: define void @_Z3t12v + // CHECK-NOT: br label // CHECK: ret void (void)new Empty[10]; } |

