diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-05-14 21:31:02 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-05-14 21:31:02 +0000 |
| commit | 1c073f47dabf7e597263f483b5d7c535e6ef6885 (patch) | |
| tree | f7f106e31ab807354899859e51c7c699b487c7a6 /clang/test/CodeGenCXX/dynamic-cast.cpp | |
| parent | 6bca984b5438540fd6433e9fa10009241a139fbb (diff) | |
| download | bcm5719-llvm-1c073f47dabf7e597263f483b5d7c535e6ef6885.tar.gz bcm5719-llvm-1c073f47dabf7e597263f483b5d7c535e6ef6885.zip | |
Emit an lvalue dynamic_cast even if the result is not used. Another
part (or possibly all) of PR7132.
llvm-svn: 103810
Diffstat (limited to 'clang/test/CodeGenCXX/dynamic-cast.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/dynamic-cast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/dynamic-cast.cpp b/clang/test/CodeGenCXX/dynamic-cast.cpp index 572b521c925..2bf1aeed492 100644 --- a/clang/test/CodeGenCXX/dynamic-cast.cpp +++ b/clang/test/CodeGenCXX/dynamic-cast.cpp @@ -10,7 +10,7 @@ const B& f(A *a) { // CHECK: call i8* @__dynamic_cast // CHECK: br i1 // CHECK: invoke void @__cxa_bad_cast() noreturn - return dynamic_cast<const B&>(*a); + dynamic_cast<const B&>(*a); } catch (std::bad_cast&) { // CHECK: call i8* @llvm.eh.exception // CHECK: {{call.*llvm.eh.selector.*_ZTISt8bad_cast}} |

