aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-14 16:55:34 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-14 16:55:34 +0000
commit4ae5efbe662e58836ac3a4f26467780990ca0ac2 (patch)
tree9bcfb5a22bb9a564c129abea6a0cc17c23956438
parent8f5c1c0148693fca20cb419576931f1c802190f5 (diff)
downloadllvm-4ae5efbe662e58836ac3a4f26467780990ca0ac2.zip
llvm-4ae5efbe662e58836ac3a4f26467780990ca0ac2.tar.gz
llvm-4ae5efbe662e58836ac3a4f26467780990ca0ac2.tar.bz2
Fix cppcheck + MSVC analyzer uninitialized member variable warning. NFCI.
llvm-svn: 368877
-rw-r--r--llvm/include/llvm/IR/DiagnosticInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/DiagnosticInfo.h b/llvm/include/llvm/IR/DiagnosticInfo.h
index 3736632..2dce5ec 100644
--- a/llvm/include/llvm/IR/DiagnosticInfo.h
+++ b/llvm/include/llvm/IR/DiagnosticInfo.h
@@ -663,7 +663,7 @@ public:
private:
/// The IR value (currently basic block) that the optimization operates on.
/// This is currently used to provide run-time hotness information with PGO.
- const Value *CodeRegion;
+ const Value *CodeRegion = nullptr;
};
/// Diagnostic information for applied optimization remarks.