File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
8
#include " clang/AST/RecordLayout.h"
10
9
#include " clang/AST/ASTContext.h"
11
10
#include " clang/AST/ASTDiagnostic.h"
@@ -1362,7 +1361,13 @@ void ItaniumRecordLayoutBuilder::LayoutFields(const RecordDecl *D) {
1362
1361
// the future, this will need to be tweakable by targets.
1363
1362
bool InsertExtraPadding = D->mayInsertExtraPadding (/* EmitRemark=*/ true );
1364
1363
bool HasFlexibleArrayMember = D->hasFlexibleArrayMember ();
1365
- for (auto I = D->field_begin (), End = D->field_end (); I != End; ++I) {
1364
+
1365
+ bool ShouldBeRandomized = D->getAttr <RandomizedAttr>() != nullptr ;
1366
+ if (ShouldBeRandomized) {
1367
+ llvm::outs () << D->getNameAsString () << " \n " ;
1368
+ }
1369
+
1370
+ for (auto I = fields.begin (), End = fields.end (); I != End; ++I) {
1366
1371
auto Next (I);
1367
1372
++Next;
1368
1373
LayoutField (*I,
You can’t perform that action at this time.
0 commit comments