]> granicus.if.org Git - clang/commitdiff
Fix -Wunused-function in Release build.
authorRui Ueyama <ruiu@google.com>
Thu, 27 Feb 2014 20:50:04 +0000 (20:50 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 27 Feb 2014 20:50:04 +0000 (20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202429 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 241a84cd634dca13e428a185493980834995e25f..b8209e79053f626d324f166c3980e5fb7866c584 100644 (file)
@@ -2569,6 +2569,7 @@ llvm::Constant *CGObjCCommonMac::GetProtocolRef(const ObjCProtocolDecl *PD) {
 
 static void assertPrivateName(const llvm::GlobalValue *GV) {
   StringRef NameRef = GV->getName();
+  (void)NameRef;
   assert(NameRef[0] == '\01' && (NameRef[1] == 'L' || NameRef[1] == 'l'));
   assert(GV->getVisibility() == llvm::GlobalValue::DefaultVisibility);
   assert(GV->getLinkage() == llvm::GlobalValue::PrivateLinkage);