Skip to content

Commit 3cac8c5

Browse files
committed
update mir-core
1 parent 439b9d2 commit 3cac8c5

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

dub.sdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors "Ilya Yaroshenko" "Sebastian Wilzbach" "John Michael Hall"
55
copyright "Copyright © 2016 - 2018, Ilya Yaroshenko; see also information per file."
66
license "BSL-1.0"
77

8-
dependency "mir-core" version=">=0.0.0 <1.0.0"
8+
dependency "mir-core" version=">=0.0.6 <1.0.0"
99

1010
buildType "unittest" {
1111
buildOptions "unittests" "debugMode" "debugInfo"

source/mir/ndslice/internal.d

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,7 @@ template ConstIfPointer(T)
1717
alias ConstIfPointer = T;
1818
}
1919

20-
version(LDC)
21-
{
22-
public import ldc.intrinsics: _expect = llvm_expect;
23-
}
24-
else
25-
{
26-
T _expect(T)(T val, T expected_val) if (__traits(isIntegral, T))
27-
{
28-
return val;
29-
}
30-
}
20+
public import mir.utility: _expect;
3121

3222
struct RightOp(string op, T)
3323
{

0 commit comments

Comments
 (0)