[PATCH] D121556: [randstruct] Add randomize structure layout support
    Fangrui Song via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Apr  8 18:07:14 PDT 2022
    
    
  
MaskRay added a comment.
You can use llvm::shuffle to avoid STL impl difference
================
Comment at: clang/lib/AST/Randstruct.cpp:160
+    if (!B->isBitfieldRun())
+      std::shuffle(std::begin(RandFields), std::end(RandFields), RNG);
+
----------------
`llvm::shuffle` to avoid 
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121556/new/
https://reviews.llvm.org/D121556
    
    
More information about the cfe-commits
mailing list