Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include <ostream>
|
||||
using namespace llvm;
|
||||
|
||||
const int LoopInfo::ID = 0;
|
||||
const char LoopInfo::ID = 0;
|
||||
static RegisterPass<LoopInfo>
|
||||
X("loops", "Natural Loop Construction", true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user