From ece18f4c1465d3744b149e3cbe39275f7dc45c9a Mon Sep 17 00:00:00 2001 From: Asiri Rathnayake Date: Wed, 1 Jun 2016 19:13:53 +0000 Subject: [PATCH] [libcxxabi][test] Add missing return statement. This causes a test failure when running with -Werror=return-type. NFC. llvm-svn: 271423 --- libcxxabi/test/cxa_bad_typeid.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxxabi/test/cxa_bad_typeid.pass.cpp b/libcxxabi/test/cxa_bad_typeid.pass.cpp index d747ff29eabd..50185736ebd6 100644 --- a/libcxxabi/test/cxa_bad_typeid.pass.cpp +++ b/libcxxabi/test/cxa_bad_typeid.pass.cpp @@ -24,7 +24,7 @@ class Base { class Derived : public Base {}; std::string test_bad_typeid(Derived *p) { - typeid(*p).name(); + return typeid(*p).name(); } void my_terminate() { std::cout << "A" << std::endl; exit(0); }