diff --git a/include/llvm/MC/MCModule.h b/include/llvm/MC/MCModule.h index 65351ecf254..aa389cbb0b2 100644 --- a/include/llvm/MC/MCModule.h +++ b/include/llvm/MC/MCModule.h @@ -18,6 +18,7 @@ #include "llvm/ADT/StringRef.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/DataTypes.h" +#include #include namespace llvm { diff --git a/include/llvm/Support/LineIterator.h b/include/llvm/Support/LineIterator.h index e4f9a1c3c1a..e2a3179db17 100644 --- a/include/llvm/Support/LineIterator.h +++ b/include/llvm/Support/LineIterator.h @@ -28,7 +28,7 @@ class MemoryBuffer; /// /// Note that this iterator requires the buffer to be nul terminated. class line_iterator - : public std::iterator { + : public std::iterator { const MemoryBuffer *Buffer; char CommentMarker;