From b8ed0cb3741533e036ee05faa165d2f0c49064f4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 28 Aug 2017 04:28:42 -0400 Subject: remove workaround for LLVM not respecting "nobuiltin" now that we depend on LLVM 5.0.0 we can remove the workaround. closes #393 --- std/math/ln.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'std/math/ln.zig') diff --git a/std/math/ln.zig b/std/math/ln.zig index a0a1429cfa..b77c6cef5b 100644 --- a/std/math/ln.zig +++ b/std/math/ln.zig @@ -10,9 +10,7 @@ const assert = @import("../debug.zig").assert; const builtin = @import("builtin"); const TypeId = builtin.TypeId; -pub const ln = ln_workaround; - -fn ln_workaround(x: var) -> @typeOf(x) { +pub fn ln(x: var) -> @typeOf(x) { const T = @typeOf(x); switch (@typeId(T)) { TypeId.FloatLiteral => { -- cgit v1.2.3