Marked this variable as 'used' so that LTO doesn't get rid of it.

llvm-svn: 166092
This commit is contained in:
Bill Wendling 2012-10-17 08:08:06 +00:00
parent 40617f593e
commit 003516b592
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ TEST_F(JITTest, FunctionIsRecompiledAndRelinked) {
// program from the IR input to the JIT to assert that the JIT doesn't use its
// definition.
extern "C" int32_t JITTest_AvailableExternallyGlobal;
int32_t JITTest_AvailableExternallyGlobal = 42;
int32_t JITTest_AvailableExternallyGlobal LLVM_ATTRIBUTE_USED = 42;
namespace {
// Tests on ARM disabled as we're running the old jit