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 | 69cfeb1036ad22c911b7243dca0eecee72e452d3 (patch) | |
tree | e790024af8797d154639a061a3d052fd0ac37722 /test/CodeGenCXX/dynamic-cast.cpp | |
parent | 8e0ac174c8c8c980927b3e1447f16f62fbe2a2e4 (diff) |
Emit an lvalue dynamic_cast even if the result is not used. Another
part (or possibly all) of PR7132.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/dynamic-cast.cpp')
-rw-r--r-- | test/CodeGenCXX/dynamic-cast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/dynamic-cast.cpp b/test/CodeGenCXX/dynamic-cast.cpp index 572b521c92..2bf1aeed49 100644 --- a/test/CodeGenCXX/dynamic-cast.cpp +++ b/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}} |