]> granicus.if.org Git - clang/commitdiff
[clang-fuzzer] Remove 'setUseOrcMCJITReplacement(false)' call.
authorLang Hames <lhames@gmail.com>
Mon, 15 Jul 2019 22:27:57 +0000 (22:27 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 15 Jul 2019 22:27:57 +0000 (22:27 +0000)
The default value for this option (UseMCJITReplacement) is already false, and
OrcMCJITReplacement is going to have deprecation warnings attached in LLVM 9.0.
Removing this call removes a spurious warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366141 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-fuzzer/handle-llvm/handle_llvm.cpp

index d0d35d51e80e5dd0e515758cfcdb4b2f0f26e86c..ba2dff0af8a932ba625d4505a77713d746e04286 100644 (file)
@@ -159,7 +159,6 @@ static void CreateAndRunJITFunc(const std::string &IR, CodeGenOpt::Level OLvl) {
   builder.setMAttrs(getFeatureList());
   builder.setErrorStr(&ErrorMsg);
   builder.setEngineKind(EngineKind::JIT);
-  builder.setUseOrcMCJITReplacement(false);
   builder.setMCJITMemoryManager(make_unique<SectionMemoryManager>());
   builder.setOptLevel(OLvl);
   builder.setTargetOptions(InitTargetOptionsFromCodeGenFlags());