Skip to content

Commit 83e3cf6

Browse files
committed
Use DIE
1 parent 77682f7 commit 83e3cf6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Evaluate/intrinsics-library.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "fold-implementation.h"
1616
#include "host.h"
1717
#include "flang/Common/erfc-scaled.h"
18+
#include "flang/Common/idioms.h"
1819
#include "flang/Common/static-multimap-view.h"
1920
#include "flang/Evaluate/expression.h"
2021
#include <cfloat>
@@ -307,7 +308,7 @@ static std::complex<HostT> CSqrt(const std::complex<HostT> &x) {
307308
res.real(reinterpret_cast<HostT(&)[2]>(r)[0]);
308309
res.imag(reinterpret_cast<HostT(&)[2]>(r)[1]);
309310
} else {
310-
assert("bad complex component type");
311+
DIE("bad complex component type");
311312
}
312313
#else
313314
res = std::sqrt(x);

0 commit comments

Comments
 (0)