1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Workaround what I believe is an MSVC bug where it emits a definition for a

static const class member into each translation unit, with external linkage???
 - If someone understands this issue better, please clue me in, I haven't
   consulted the standard yet.

llvm-svn: 82516
This commit is contained in:
Daniel Dunbar 2009-09-22 03:34:40 +00:00
parent 14c9a4d355
commit a75b499af8

View File

@ -10,7 +10,10 @@
#include "llvm/ADT/StringRef.h"
using namespace llvm;
// MSVC emits references to this into the translation units which reference it.
#ifndef _MSC_VER
const size_t StringRef::npos;
#endif
//===----------------------------------------------------------------------===//
// String Searching