diff options
Diffstat (limited to 'llvm/include')
| -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 *>; }; |

