Fix hip_throw. (#1285)

* Fix hip_throw.

* Fix typo

* No, really fix typo
이 커밋은 다음에 포함됨:
Alex Voicu 작성하고 Maneesh Gupta가 2019-08-05 09:52:22 +00:00를 커밋함
1 부모 4ee600ed5e
커밋 fbbed603ff
1 파일이 변경됨
+2
+2
파일 보기
@@ -2494,6 +2494,8 @@ namespace hip_impl {
[[noreturn]]
void hip_throw(const std::exception& ex) {
#if defined(__cpp_exceptions)
if (auto rte = dynamic_cast<const std::runtime_error*>(&ex)) throw *rte;
if (auto lge = dynamic_cast<const std::logic_error*>(&ex)) throw *lge;
throw ex;
#else
std::cerr << ex.what() << std::endl;