mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-06 05:29:55 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48a097bfb6
commit
77696bebbc
@ -10,7 +10,10 @@
|
|||||||
#include "llvm/ADT/StringRef.h"
|
#include "llvm/ADT/StringRef.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
// MSVC emits references to this into the translation units which reference it.
|
||||||
|
#ifndef _MSC_VER
|
||||||
const size_t StringRef::npos;
|
const size_t StringRef::npos;
|
||||||
|
#endif
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// String Searching
|
// String Searching
|
||||||
|
Loading…
Reference in New Issue
Block a user