[llvm] r184051 - Put back variable names because they are referenced in the documentation
Dmitri Gribenko
gribozavr at gmail.com
Sat Jun 15 20:22:56 PDT 2013
Author: gribozavr
Date: Sat Jun 15 22:22:56 2013
New Revision: 184051
URL: http://llvm.org/viewvc/llvm-project?rev=184051&view=rev
Log:
Put back variable names because they are referenced in the documentation
comment.
Modified:
llvm/trunk/include/llvm/Support/MathExtras.h
Modified: llvm/trunk/include/llvm/Support/MathExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MathExtras.h?rev=184051&r1=184050&r2=184051&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/MathExtras.h (original)
+++ llvm/trunk/include/llvm/Support/MathExtras.h Sat Jun 15 22:22:56 2013
@@ -45,7 +45,9 @@ enum ZeroBehavior {
template <typename T>
typename enable_if_c<std::numeric_limits<T>::is_integer &&
!std::numeric_limits<T>::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<T>::digits;
if (Val & 0x1)
@@ -114,7 +116,9 @@ inline std::size_t countTrailingZeros<ui
template <typename T>
typename enable_if_c<std::numeric_limits<T>::is_integer &&
!std::numeric_limits<T>::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<T>::digits;
More information about the llvm-commits
mailing list