r202330 - Fix -Wunused-variable in non-assert builds. No functionality change.
Nick Lewycky
nicholas at mxc.ca
Wed Feb 26 16:36:00 PST 2014
Author: nicholas
Date: Wed Feb 26 18:36:00 2014
New Revision: 202330
URL: http://llvm.org/viewvc/llvm-project?rev=202330&view=rev
Log:
Fix -Wunused-variable in non-assert builds. No functionality change.
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=202330&r1=202329&r2=202330&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Wed Feb 26 18:36:00 2014
@@ -6746,6 +6746,7 @@ llvm::Value *CGObjCNonFragileABIMac::Get
if (ID->isWeakImported()) {
std::string ClassName(getClassSymbolPrefix() + ID->getNameAsString());
llvm::GlobalVariable *ClassGV = GetClassGlobal(ClassName, true);
+ (void)ClassGV;
assert(ClassGV->getLinkage() == llvm::GlobalValue::ExternalWeakLinkage);
}
More information about the cfe-commits
mailing list