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
This commit is contained in:
Timur Iskhodzhanov 2015-04-07 11:26:00 +00:00
parent 83544cf660
commit 90639edd3d
1 changed files with 1 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ llvm::DICompositeType CGDebugInfo::getOrCreateInstanceMethodType(
SmallVector<llvm::Metadata *, 16> 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();