[llvm] r355023 - Fixed ubsan failures in r355005.
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 27 12:01:14 PST 2019
Author: xur
Date: Wed Feb 27 12:01:14 2019
New Revision: 355023
URL: http://llvm.org/viewvc/llvm-project?rev=355023&view=rev
Log:
Fixed ubsan failures in r355005.
Modified:
llvm/trunk/include/llvm/Transforms/Instrumentation/InstrProfiling.h
Modified: llvm/trunk/include/llvm/Transforms/Instrumentation/InstrProfiling.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Instrumentation/InstrProfiling.h?rev=355023&r1=355022&r2=355023&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Instrumentation/InstrProfiling.h (original)
+++ llvm/trunk/include/llvm/Transforms/Instrumentation/InstrProfiling.h Wed Feb 27 12:01:14 2019
@@ -34,7 +34,7 @@ using LoadStorePair = std::pair<Instruct
/// instrumentation pass.
class InstrProfiling : public PassInfoMixin<InstrProfiling> {
public:
- InstrProfiling() = default;
+ InstrProfiling() : IsCS(false) {}
InstrProfiling(const InstrProfOptions &Options, bool IsCS = false)
: Options(Options), IsCS(IsCS) {}
More information about the llvm-commits
mailing list