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 父节点 48a775373c
当前提交 e24df75cc1
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;