From: David Majnemer Date: Sat, 22 Feb 2014 00:41:07 +0000 (+0000) Subject: IRGen: Fix build breakage X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c7fc1199f53fec064a944d730d271518de33061;p=clang IRGen: Fix build breakage MSVC allows extra-qualification on member functions, it lets you repeat the class name on the method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201918 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGRecordLayoutBuilder.cpp b/lib/CodeGen/CGRecordLayoutBuilder.cpp index 18bea80e55..b93038c4d0 100644 --- a/lib/CodeGen/CGRecordLayoutBuilder.cpp +++ b/lib/CodeGen/CGRecordLayoutBuilder.cpp @@ -109,7 +109,7 @@ struct CGRecordLowering { (unsigned)llvm::RoundUpToAlignment(NumBits, 8)); } /// \brief Gets an llvm type of size NumBytes and alignment 1. - llvm::Type *CGRecordLowering::getByteArrayType(CharUnits NumBytes) { + llvm::Type *getByteArrayType(CharUnits NumBytes) { assert(!NumBytes.isZero() && "Empty byte arrays aren't allowed."); llvm::Type *Type = llvm::Type::getInt8Ty(Types.getLLVMContext()); return NumBytes == CharUnits::One() ? Type :