[PATCH] D66122: [CodeGen] Emit dynamic initializers for static TLS vars in outlined scopes

Mandeep Singh Grang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 16 16:13:43 PDT 2019


mgrang added inline comments.


================
Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:472
+
+  llvm::sort(OrderedVarInits.begin(), OrderedVarInits.end(),
+      [&VarInitDependencies](const VarDecl *a, const VarDecl *b) {
----------------
You can use the range-based version of llvm::sort here:

`llvm::sort(OrderedVarInits);`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66122/new/

https://reviews.llvm.org/D66122





More information about the cfe-commits mailing list