]> granicus.if.org Git - clang/commitdiff
IRGen: Fix build breakage
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Feb 2014 00:41:07 +0000 (00:41 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Feb 2014 00:41:07 +0000 (00:41 +0000)
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

lib/CodeGen/CGRecordLayoutBuilder.cpp

index 18bea80e55bc12394899979ef76cbf8042d3681a..b93038c4d07cb10c81708d2ea38660a5e002c17b 100644 (file)
@@ -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 :