Skip to content

Commit 2a220f2

Browse files
committed
Delete NoRandomizeLayout check
This will be checked at our entry point, so we don't need to check this here.
1 parent a8106ca commit 2a220f2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/AST/RecordFieldReorganizer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@ void Randstruct::reorganize(const ASTContext &C, const RecordDecl *D,
254254
NewOrder = randomized;
255255
}
256256
bool Randstruct::isTriviallyRandomizable(const RecordDecl *D) {
257-
/*if(D->getAttr<NoRandomizeLayoutAttr>() != nullptr){
258-
return false;
259-
}*/
260257
for (auto f : D->fields()){
261258
//If an element of the structure does not have a
262259
//function type is not a function pointer

0 commit comments

Comments
 (0)