On Darwin, the string header file isn't 64-bit clean. The use of
authorBill Wendling <isanbard@gmail.com>
Sat, 17 May 2008 09:10:40 +0000 (09:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 17 May 2008 09:10:40 +0000 (09:10 +0000)
commitfbaa37937f58a8fcd32e4c6f0dce8773d7be9837
treef3f216dd40265823fcce4396848626b9af5f7ac4
parent6cccce3e58009c92876651877a9a7a19e78b89e8
On Darwin, the string header file isn't 64-bit clean. The use of
"-Wshorten-64-to-32 -Werror" will cause a failure when compiling this complex
program:

#include <string>

class Path {
  mutable std::string path;
public:
  bool operator == (const Path &that) {
    return path == that.path;
  }
};

Using strcmp gets us past this annoying error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51218 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/System/Path.h