Skip to content

Commit 2c5f3eb

Browse files
committed
Added changes requested by Nixoncole
1 parent 2a220f2 commit 2c5f3eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Driver/Options.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ def fno_reroll_loops : Flag<["-"], "fno-reroll-loops">, Group<f_Group>,
17531753
HelpText<"Turn off loop reroller">;
17541754
def randstruct_auto : Flag<["-"], "randstruct-auto">,
17551755
HelpText<"Enable automatic structure selection for field randomization; "
1756-
"disabled with no_randomize_layout">, Flags<[CC1Option]>;
1756+
"Disable for specific structures with attribute no_randomize_layout">, Flags<[CC1Option]>;
17571757
def ftrigraphs : Flag<["-"], "ftrigraphs">, Group<f_Group>,
17581758
HelpText<"Process trigraph sequences">, Flags<[CC1Option]>;
17591759
def fno_trigraphs : Flag<["-"], "fno-trigraphs">, Group<f_Group>,

clang/lib/AST/RecordFieldReorganizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ bool Randstruct::isTriviallyRandomizable(const RecordDecl *D) {
257257
for (auto f : D->fields()){
258258
//If an element of the structure does not have a
259259
//function type is not a function pointer
260-
if(f->getFunctionType() == nullptr){ return false; }
260+
if(f->getFunctionType() == nullptr){ return false; }
261261
}
262262
return true;
263263
}

0 commit comments

Comments
 (0)