diff options
author | Paul Robinson <paul.robinson@sony.com> | 2016-12-19 18:00:45 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2016-12-19 18:00:45 +0000 |
commit | 79bc5296097055e24cc31ac529556b187c104937 (patch) | |
tree | 1dd24e17dffd8cdf6a32684c7a17cdc2d47a41b9 /test/CodeGenCXX/nrvo.cpp | |
parent | 41deb1fc6bc56ce0a68b0f008d876c9bd42f4165 (diff) |
Undo accidental comit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/nrvo.cpp')
-rw-r--r-- | test/CodeGenCXX/nrvo.cpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/test/CodeGenCXX/nrvo.cpp b/test/CodeGenCXX/nrvo.cpp index d02206abae..d8e5b13465 100644 --- a/test/CodeGenCXX/nrvo.cpp +++ b/test/CodeGenCXX/nrvo.cpp @@ -1,6 +1,5 @@ // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -O1 -o - %s | FileCheck %s -// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -O1 -fcxx-exceptions -fexceptions -std=c++03 -o - %s | FileCheck --check-prefixes=CHECK-EH,CHECK-EH-03 %s -// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -O1 -fcxx-exceptions -fexceptions -std=c++11 -o - %s | FileCheck --check-prefixes=CHECK-EH,CHECK-EH-11 %s +// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -O1 -fcxx-exceptions -fexceptions -o - %s | FileCheck --check-prefix=CHECK-EH %s // Test code generation for the named return value optimization. class X { @@ -92,18 +91,16 @@ X test2(bool B) { // -> %eh.cleanup // %lpad1: landing pad for return copy ctors, EH cleanup for 'y' - // CHECK-EH-03: invoke {{.*}} @_ZN1XD1Ev + // CHECK-EH: invoke {{.*}} @_ZN1XD1Ev // -> %eh.cleanup, %terminate.lpad - // CHECK-EH-11: call {{.*}} @_ZN1XD1Ev // %if.end: returning 'y' // CHECK-EH: invoke {{.*}} @_ZN1XC1ERKS_ // -> %cleanup, %lpad1 // %cleanup: normal cleanup for 'y' - // CHECK-EH-03: invoke {{.*}} @_ZN1XD1Ev + // CHECK-EH: invoke {{.*}} @_ZN1XD1Ev // -> %invoke.cont11, %lpad - // CHECK-EH-11: call {{.*}} @_ZN1XD1Ev // %invoke.cont11: normal cleanup for 'x' // CHECK-EH: call void @llvm.lifetime.end @@ -112,20 +109,19 @@ X test2(bool B) { // CHECK-EH-NEXT: ret void // %eh.cleanup: EH cleanup for 'x' - // CHECK-EH-03: invoke {{.*}} @_ZN1XD1Ev + // CHECK-EH: invoke {{.*}} @_ZN1XD1Ev // -> %invoke.cont17, %terminate.lpad - // CHECK-EH-11: call {{.*}} @_ZN1XD1Ev // %invoke.cont17: rethrow block for %eh.cleanup. // This really should be elsewhere in the function. // CHECK-EH: resume { i8*, i32 } // %terminate.lpad: terminate landing pad. - // CHECK-EH-03: [[T0:%.*]] = landingpad { i8*, i32 } - // CHECK-EH-03-NEXT: catch i8* null - // CHECK-EH-03-NEXT: [[T1:%.*]] = extractvalue { i8*, i32 } [[T0]], 0 - // CHECK-EH-03-NEXT: call void @__clang_call_terminate(i8* [[T1]]) [[NR_NUW:#[0-9]+]] - // CHECK-EH-03-NEXT: unreachable + // CHECK-EH: [[T0:%.*]] = landingpad { i8*, i32 } + // CHECK-EH-NEXT: catch i8* null + // CHECK-EH-NEXT: [[T1:%.*]] = extractvalue { i8*, i32 } [[T0]], 0 + // CHECK-EH-NEXT: call void @__clang_call_terminate(i8* [[T1]]) [[NR_NUW:#[0-9]+]] + // CHECK-EH-NEXT: unreachable } @@ -221,4 +217,4 @@ Y<int> test9() { // CHECK-LABEL: define linkonce_odr void @_ZN1YIiE1fEv // CHECK: tail call {{.*}} @_ZN1YIiEC1Ev -// CHECK-EH-03: attributes [[NR_NUW]] = { noreturn nounwind } +// CHECK-EH: attributes [[NR_NUW]] = { noreturn nounwind } |