[PATCH] D49526: Updated llvm-proto-fuzzer to execute the compiled code

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 15:22:33 PDT 2018


pcc added inline comments.


================
Comment at: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp:211-224
+  std::string ErrorMsg1;
+  EngineBuilder builder1(std::move(Owner1));
+  builder1.setMArch(MArch);
+  builder1.setMCPU(getCPUStr());
+  builder1.setMAttrs(getFeatureList());
+  builder1.setErrorStr(&ErrorMsg1);
+  builder1.setEngineKind(EngineKind::JIT);
----------------
Can you move this code (and maybe more of the duplicated code below) into a function and call it twice?


Repository:
  rC Clang

https://reviews.llvm.org/D49526





More information about the llvm-commits mailing list