r288272 - Prospective MSVC workaround.
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 30 12:46:56 PST 2016
Author: rjmccall
Date: Wed Nov 30 14:46:55 2016
New Revision: 288272
URL: http://llvm.org/viewvc/llvm-project?rev=288272&view=rev
Log:
Prospective MSVC workaround.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=288272&r1=288271&r2=288272&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Wed Nov 30 14:46:55 2016
@@ -2450,7 +2450,8 @@ llvm::Function *CGObjCGNU::ModuleInitFun
llvm::GlobalVariable *selectorList = [&] {
ConstantInitBuilder builder(CGM);
auto selectors = builder.beginArray(selStructTy);
- for (auto &entry : SelectorTable) {
+ auto &table = SelectorTable; // MSVC workaround
+ for (auto &entry : table) {
std::string selNameStr = entry.first.getAsString();
llvm::Constant *selName = ExportUniqueString(selNameStr, ".objc_sel_name");
More information about the cfe-commits
mailing list