diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-11 06:41:30 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-11 06:41:30 +0000 |
commit | 9233b15d01ca62445bfc638f782243988c672e01 (patch) | |
tree | d6835dc476828ac488e8066c9f1bb6528be60d60 /include | |
parent | 8c5ad3a5da7419af4d31963c3824836b5da52478 (diff) | |
download | external_llvm-9233b15d01ca62445bfc638f782243988c672e01.zip external_llvm-9233b15d01ca62445bfc638f782243988c672e01.tar.gz external_llvm-9233b15d01ca62445bfc638f782243988c672e01.tar.bz2 |
Fix some of the memcheck errors found in the JIT unittests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DerivedTypes.h | 1 | ||||
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index c220608..881fbc8 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -496,6 +496,7 @@ public: /// OpaqueType - Class to represent abstract types /// class OpaqueType : public DerivedType { + friend class LLVMContextImpl; OpaqueType(const OpaqueType &); // DO NOT IMPLEMENT const OpaqueType &operator=(const OpaqueType &); // DO NOT IMPLEMENT OpaqueType(LLVMContext &C); diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index bed2f13..fd56b16 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -132,7 +132,7 @@ class SMDiagnostic { unsigned ShowLine : 1; public: - SMDiagnostic() : LineNo(0), ColumnNo(0) {} + SMDiagnostic() : LineNo(0), ColumnNo(0), ShowLine(0) {} SMDiagnostic(const std::string &FN, int Line, int Col, const std::string &Msg, const std::string &LineStr, bool showline = true) |