Skip to content

Commit

Permalink
Merge pull request JuliaLang#12160 from JuliaLang/yyc/llvm-36
Browse files Browse the repository at this point in the history
Fix compilation on llvm 3.6
  • Loading branch information
vtjnash committed Jul 15, 2015
2 parents 0eae746 + 7f72906 commit 8efc44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ static void jl_dump_shadow(char *fname, int jit_model, const char *sysimg_data,
// now copy the module, since PM.run may modify it
ValueToValueMapTy VMap;
Module *clone = CloneModule(shadow_module, VMap);
#ifdef USE_MCJIT
#ifdef LLVM37
// Reset the target triple to make sure it matches the new target machine
clone->setTargetTriple(TM->getTargetTriple().str());
clone->setDataLayout(TM->getDataLayout()->getStringRepresentation());
Expand Down

0 comments on commit 8efc44d

Please sign in to comment.