[llvm] r192564 - Windows: Fix a typo in an assert

Aaron Ballman aaron at aaronballman.com
Mon Oct 14 06:40:08 PDT 2013


There seem to be several unrelated changes (probably newlines?).  I'm
assuming those were not intended?

~Aaron

On Sun, Oct 13, 2013 at 9:17 PM, David Majnemer
<david.majnemer at gmail.com> wrote:
> Author: majnemer
> Date: Sun Oct 13 20:17:32 2013
> New Revision: 192564
>
> URL: http://llvm.org/viewvc/llvm-project?rev=192564&view=rev
> Log:
> Windows: Fix a typo in an assert
>
> Modified:
>     llvm/trunk/lib/Support/Windows/TimeValue.inc
>
> Modified: llvm/trunk/lib/Support/Windows/TimeValue.inc
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/TimeValue.inc?rev=192564&r1=192563&r2=192564&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Support/Windows/TimeValue.inc (original)
> +++ llvm/trunk/lib/Support/Windows/TimeValue.inc Sun Oct 13 20:17:32 2013
> @@ -15,8 +15,8 @@
>  #include <cctype>
>  #include <time.h>
>
> -namespace llvm {
> -using namespace sys;
> +using namespace llvm;
> +using namespace llvm::sys;
>
>  //===----------------------------------------------------------------------===//
>  //=== WARNING: Implementation here must contain only Win32 specific code.
> @@ -50,13 +50,10 @@ std::string TimeValue::str() const {
>    char Buffer[25];
>    // FIXME: the windows version of strftime doesn't support %e
>    strftime(Buffer, 25, "%b %d %H:%M %Y", LT);
> -  assert((Buffer[3] == ' ' && isdigit(Buffer[5]) && Buffer[6] == ' ') ||
> +  assert((Buffer[3] == ' ' && isdigit(Buffer[5]) && Buffer[6] == ' ') &&
>           "Unexpected format in strftime()!");
>    // Emulate %e on %d to mute '0'.
>    if (Buffer[4] == '0')
>      Buffer[4] = ' ';
>    return std::string(Buffer);
>  }
> -
> -
> -}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list