[llvm] r192564 - Windows: Fix a typo in an assert
David Majnemer
david.majnemer at gmail.com
Sun Oct 13 18:17:32 PDT 2013
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);
}
-
-
-}
More information about the llvm-commits
mailing list