r202429 - Fix -Wunused-function in Release build.
Rui Ueyama
ruiu at google.com
Thu Feb 27 12:50:05 PST 2014
Author: ruiu
Date: Thu Feb 27 14:50:04 2014
New Revision: 202429
URL: http://llvm.org/viewvc/llvm-project?rev=202429&view=rev
Log:
Fix -Wunused-function in Release build.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=202429&r1=202428&r2=202429&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Thu Feb 27 14:50:04 2014
@@ -2569,6 +2569,7 @@ llvm::Constant *CGObjCCommonMac::GetProt
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);
More information about the cfe-commits
mailing list