[PATCH] SanitizerCoverage: Use `createSanitizerCtor` to create ctor and call init

Alexey Samsonov vonosmas at gmail.com
Thu May 7 14:34:06 PDT 2015


================
Comment at: lib/Transforms/Instrumentation/SanitizerCoverage.cpp:272
@@ +271,3 @@
+  Function *CtorFunc = nullptr;
+  std::tie(CtorFunc, SanCovModuleInit) = createSanitizerCtorAndInitFunctions(
+      M, kSanCovModuleCtorName, kSanCovModuleInitName,
----------------
samsonov wrote:
> Note that SanCovModuleInit is not used anywhere, maybe you can also turn it into a local variable, and delete the class member?
(or just use std::ignore)

http://reviews.llvm.org/D8780

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list