From 3018f0ddd4677eadf33af4284b8fa41ed929a2f0 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sun, 16 Jun 2013 03:22:56 +0000 Subject: [PATCH] Put back variable names because they are referenced in the documentation comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184051 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/MathExtras.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index a65bfbcd203..7742e32737a 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -45,7 +45,9 @@ enum ZeroBehavior { template typename enable_if_c::is_integer && !std::numeric_limits::is_signed, std::size_t>::type -countTrailingZeros(T Val, ZeroBehavior /*ZB*/ = ZB_Width) { +countTrailingZeros(T Val, ZeroBehavior ZB = ZB_Width) { + (void)ZB; + if (!Val) return std::numeric_limits::digits; if (Val & 0x1) @@ -114,7 +116,9 @@ inline std::size_t countTrailingZeros(uint64_t Val, ZeroBehavior ZB) { template typename enable_if_c::is_integer && !std::numeric_limits::is_signed, std::size_t>::type -countLeadingZeros(T Val, ZeroBehavior /*ZB*/ = ZB_Width) { +countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) { + (void)ZB; + if (!Val) return std::numeric_limits::digits; -- 2.34.1