diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-10-14 01:17:32 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-10-14 01:17:32 +0000 |
commit | 93fdc3fabfe8a403e72e1661f3baaaef5d44814c (patch) | |
tree | a8cc99eb03afd3c66a90bd9fb79f760b1f7b4a6d /llvm/lib/Support | |
parent | e2e0387f3e48d6fde871cb388f7322b4239e7cc9 (diff) | |
download | bcm5719-llvm-93fdc3fabfe8a403e72e1661f3baaaef5d44814c.tar.gz bcm5719-llvm-93fdc3fabfe8a403e72e1661f3baaaef5d44814c.zip |
Windows: Fix a typo in an assert
llvm-svn: 192564
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Windows/TimeValue.inc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Support/Windows/TimeValue.inc b/llvm/lib/Support/Windows/TimeValue.inc index ef1e217feaf..98b07d6e447 100644 --- a/llvm/lib/Support/Windows/TimeValue.inc +++ b/llvm/lib/Support/Windows/TimeValue.inc @@ -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); } - - -} |