Enable/silence -Wshadow.

llvm-svn: 152325
This commit is contained in:
Howard Hinnant 2012-03-08 19:34:58 +00:00
parent 05d2212db3
commit 11dd38dab0
2 changed files with 1 additions and 4 deletions

View File

@ -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-*)

View File

@ -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());