From 32ac583d91de64f5565a38b05a499b9251eb0125 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 20 Jul 2010 21:55:52 +0000 Subject: in 'new int[4]', constant fold the 4*4=16 instead of doing an overflow check. llvm-svn: 108943 --- clang/test/CodeGenCXX/new.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/test/CodeGenCXX/new.cpp') 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]; } -- cgit v1.2.3