From: Timur Iskhodzhanov Date: Tue, 7 Apr 2015 11:26:00 +0000 (+0000) Subject: Fix a compiler error under MSVC X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90639edd3dd4943531b5243c0cff3be663dd68c3;p=platform%2Fupstream%2Fllvm.git Fix a compiler error under MSVC Error message was: CGDebugInfo.cpp(1047) : error C2666: 'llvm::MDTypeRefArray::operator []' : 2 overloads have similar conversions DebugInfoMetadata.h(106): could be 'llvm::MDTypeRef llvm::MDTypeRefArray::operator [](unsigned int) const' while trying to match the argument list '(llvm::DITypeArray, int)' llvm-svn: 234308 --- diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 96ca886..da90f02 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1044,7 +1044,7 @@ llvm::DICompositeType CGDebugInfo::getOrCreateInstanceMethodType( SmallVector Elts; // First element is always return type. For 'void' functions it is NULL. - Elts.push_back(Args[0]); + Elts.push_back(Args[0u]); // "this" pointer is always first argument. const CXXRecordDecl *RD = ThisPtr->getPointeeCXXRecordDecl();