[libcxxabi] r337906 - Fix dangling reference in test
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 25 04:19:13 PDT 2018
Author: ericwf
Date: Wed Jul 25 04:19:13 2018
New Revision: 337906
URL: http://llvm.org/viewvc/llvm-project?rev=337906&view=rev
Log:
Fix dangling reference in test
Modified:
libcxxabi/trunk/test/cxa_bad_cast.pass.cpp
Modified: libcxxabi/trunk/test/cxa_bad_cast.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/cxa_bad_cast.pass.cpp?rev=337906&r1=337905&r2=337906&view=diff
==============================================================================
--- libcxxabi/trunk/test/cxa_bad_cast.pass.cpp (original)
+++ libcxxabi/trunk/test/cxa_bad_cast.pass.cpp Wed Jul 25 04:19:13 2018
@@ -21,7 +21,7 @@ class Base {
class Derived : public Base {};
-Derived &test_bad_cast(Base b) {
+Derived &test_bad_cast(Base& b) {
return dynamic_cast<Derived&>(b);
}
More information about the cfe-commits
mailing list