summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2015-04-07 11:26:00 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2015-04-07 11:26:00 +0000
commit90639edd3dd4943531b5243c0cff3be663dd68c3 (patch)
treea046c4cab8992ac2d0ae9cfbb4e0034f320d1613 /clang/lib/CodeGen
parent83544cf660d96e191f539ddb5e49aa6aa1feb93c (diff)
downloadbcm5719-llvm-90639edd3dd4943531b5243c0cff3be663dd68c3.tar.gz
bcm5719-llvm-90639edd3dd4943531b5243c0cff3be663dd68c3.zip
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
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 96ca886c64c..da90f0265ca 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -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();
OpenPOWER on IntegriCloud