[llvm] r282812 - [Diag] Use non-static member initializer for IsVerbose. NFC
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 29 17:01:27 PDT 2016
Author: anemet
Date: Thu Sep 29 19:01:27 2016
New Revision: 282812
URL: http://llvm.org/viewvc/llvm-project?rev=282812&view=rev
Log:
[Diag] Use non-static member initializer for IsVerbose. NFC
Modified:
llvm/trunk/include/llvm/IR/DiagnosticInfo.h
Modified: llvm/trunk/include/llvm/IR/DiagnosticInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=282812&r1=282811&r2=282812&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DiagnosticInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DiagnosticInfo.h Thu Sep 29 19:01:27 2016
@@ -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 *>;
};
More information about the llvm-commits
mailing list