error while making the clang

I have been trying to build Clang by updating it for the last few days
and constantly getting the following error message:

RecordLayoutBuilder.cpp: In member function
unsigned int)’:
RecordLayoutBuilder.cpp:1595: error: ‘class clang::ASTContext’ has no
member named ‘getDiagnostics’
RecordLayoutBuilder.cpp: At global scope:
RecordLayoutBuilder.cpp:1600: warning: ‘MSRecordLayoutBuilder’ has a
field ‘MSRecordLayoutBuilder::<anonymous>’ whose type uses the
anonymous namespace
RecordLayoutBuilder.cpp:1600: warning: ‘MSRecordLayoutBuilder’ has a
base ‘<unnamed>::RecordLayoutBuilder’ whose type uses the anonymous
make[4]: *** [/home/llvm/tools/clang/lib/AST/Debug+Asserts/RecordLayoutBuilder.o]
Error 1
make[4]: Leaving directory `/home/llvm/tools/clang/lib/AST'
make[3]: *** [AST/.makeall] Error 2
make[3]: Leaving directory `/home/llvm/tools/clang/lib'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home/llvm/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/home/llvm/tools'
make: *** [all] Error 1