diff options
author | Adam Nemet <anemet@apple.com> | 2016-09-30 00:01:27 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-09-30 00:01:27 +0000 |
commit | 9f1be9b95d4de351754748252a909ba296881d32 (patch) | |
tree | 0359c35e129c1975f2602f63e2b30203c8deb8b1 | |
parent | f96c13d91c2bc9180fbad36fe7d22641e0fc78a7 (diff) | |
download | bcm5719-llvm-9f1be9b95d4de351754748252a909ba296881d32.tar.gz bcm5719-llvm-9f1be9b95d4de351754748252a909ba296881d32.zip |
[Diag] Use non-static member initializer for IsVerbose. NFC
llvm-svn: 282812
-rw-r--r-- | llvm/include/llvm/IR/DiagnosticInfo.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm/IR/DiagnosticInfo.h b/llvm/include/llvm/IR/DiagnosticInfo.h index 015f3042a13..1f12998794d 100644 --- a/llvm/include/llvm/IR/DiagnosticInfo.h +++ b/llvm/include/llvm/IR/DiagnosticInfo.h @@ -406,8 +406,7 @@ public: const Function &Fn, const DebugLoc &DLoc, Value *CodeRegion = nullptr) : DiagnosticInfoWithDebugLocBase(Kind, Severity, Fn, DLoc), - PassName(PassName), RemarkName(RemarkName), CodeRegion(CodeRegion), - IsVerbose(false) {} + PassName(PassName), RemarkName(RemarkName), CodeRegion(CodeRegion) {} /// Legacy interface. /// \p PassName is the name of the pass emitting this diagnostic. @@ -423,7 +422,7 @@ public: const DebugLoc &DLoc, const Twine &Msg, Optional<uint64_t> Hotness = None) : DiagnosticInfoWithDebugLocBase(Kind, Severity, Fn, DLoc), - PassName(PassName), Hotness(Hotness), IsVerbose(false) { + PassName(PassName), Hotness(Hotness) { Args.push_back(Argument(Msg.str())); } @@ -477,7 +476,7 @@ private: SmallVector<Argument, 4> Args; /// The remark is expected to be noisy. - bool IsVerbose; + bool IsVerbose = false; friend struct yaml::MappingTraits<DiagnosticInfoOptimizationBase *>; }; |