summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/AST/ASTImporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/AST/ASTImporter.h')
-rw-r--r--clang/include/clang/AST/ASTImporter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/include/clang/AST/ASTImporter.h b/clang/include/clang/AST/ASTImporter.h
index c82dcab35db..50eda635bf8 100644
--- a/clang/include/clang/AST/ASTImporter.h
+++ b/clang/include/clang/AST/ASTImporter.h
@@ -60,8 +60,12 @@ class TypeSourceInfo;
static char ID;
- ImportError() : Error(Unknown) { }
- ImportError(const ImportError &Other) : Error(Other.Error) { }
+ ImportError() : Error(Unknown) {}
+ ImportError(const ImportError &Other) : Error(Other.Error) {}
+ ImportError &operator=(const ImportError &Other) {
+ Error = Other.Error;
+ return *this,
+ }
ImportError(ErrorKind Error) : Error(Error) { }
std::string toString() const;
OpenPOWER on IntegriCloud