projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e109ef8
)
Prospective MSVC workaround.
author
John McCall
<rjmccall@apple.com>
Wed, 30 Nov 2016 20:46:55 +0000
(20:46 +0000)
committer
John McCall
<rjmccall@apple.com>
Wed, 30 Nov 2016 20:46:55 +0000
(20:46 +0000)
llvm-svn: 288272
clang/lib/CodeGen/CGObjCGNU.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGObjCGNU.cpp
b/clang/lib/CodeGen/CGObjCGNU.cpp
index
69e84d1
..
3fd8dab
100644
(file)
--- a/
clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/
clang/lib/CodeGen/CGObjCGNU.cpp
@@
-2450,7
+2450,8
@@
llvm::Function *CGObjCGNU::ModuleInitFunction() {
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");