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 | bf80b3cead9b116ed245ba21552b82c226807586 (patch) | |
tree | 7c05d5fa901e8bd8c92f4e140321f3f2e8df0f7f /lib | |
parent | eefca967925d2b8cbb3ed3a24930717ea315b56e (diff) | |
download | external_llvm-bf80b3cead9b116ed245ba21552b82c226807586.zip external_llvm-bf80b3cead9b116ed245ba21552b82c226807586.tar.gz external_llvm-bf80b3cead9b116ed245ba21552b82c226807586.tar.bz2 |
Windows: Fix a typo in an assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/Windows/TimeValue.inc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Support/Windows/TimeValue.inc b/lib/Support/Windows/TimeValue.inc index ef1e217..98b07d6 100644 --- a/lib/Support/Windows/TimeValue.inc +++ b/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); } - - -} |