Skip to content

Commit cf2ff04

Browse files
committed
Fix code formatting
1 parent 8b1b13b commit cf2ff04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/CodeGen/MIRParser/MIRParser.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,13 @@ bool MIRParserImpl::computeFunctionProperties(
406406
auto ComputedPropertyHelper =
407407
[&Properties](std::optional<bool> ExplicitProp, bool ComputedProp,
408408
MachineFunctionProperties::Property P) -> bool {
409+
// Prefer explicitly given values over the computed properties
409410
if (ExplicitProp.value_or(ComputedProp))
410411
Properties.set(P);
411412
else
412413
Properties.reset(P);
413-
414+
415+
// Check for conflict between the explicit values and the computed ones
414416
return ExplicitProp && *ExplicitProp && !ComputedProp;
415417
};
416418

0 commit comments

Comments
 (0)