diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-03-08 19:34:58 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-03-08 19:34:58 +0000 |
commit | 11dd38dab0ae79dfb8d28517fe1d346502b6c01f (patch) | |
tree | eaef3cf2587455097f1b6bb4a9567d7346838585 /libcxxabi | |
parent | 05d2212db3daa1aa33f98a13b75e5655b64ea487 (diff) | |
download | bcm5719-llvm-11dd38dab0ae79dfb8d28517fe1d346502b6c01f.tar.gz bcm5719-llvm-11dd38dab0ae79dfb8d28517fe1d346502b6c01f.zip |
Enable/silence -Wshadow.
llvm-svn: 152325
Diffstat (limited to 'libcxxabi')
-rwxr-xr-x | libcxxabi/lib/buildit | 2 | ||||
-rw-r--r-- | libcxxabi/src/cxa_handlers.cpp | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/libcxxabi/lib/buildit b/libcxxabi/lib/buildit index 342543a02a5..8ebae2dfaea 100755 --- a/libcxxabi/lib/buildit +++ b/libcxxabi/lib/buildit @@ -28,7 +28,7 @@ then fi EXTRA_FLAGS="-std=c++0x -stdlib=libc++ -fstrict-aliasing -Wstrict-aliasing=2 \ - -Wsign-conversion -Wnewline-eof" + -Wsign-conversion -Wshadow -Wnewline-eof" case $TRIPLE in *-apple-*) diff --git a/libcxxabi/src/cxa_handlers.cpp b/libcxxabi/src/cxa_handlers.cpp index ab41db44d45..bd3f6f44760 100644 --- a/libcxxabi/src/cxa_handlers.cpp +++ b/libcxxabi/src/cxa_handlers.cpp @@ -177,10 +177,7 @@ terminate() _NOEXCEPT (unwind_exception->exception_class & get_vendor_and_language) == (kOurExceptionClass & get_vendor_and_language); if (native_exception) - { - __cxa_exception* exception_header = (__cxa_exception*)(unwind_exception+1) - 1; __terminate(exception_header->terminateHandler); - } } } __terminate(get_terminate()); |