Fail if ToString of comparisons is called during initialization.
PiperOrigin-RevId: 353375663 Change-Id: I219656e849301c567091672d5a6ea19e64e2ee40
This commit is contained in:
parent
a34316afa2
commit
18d8bcbe72
@ -33,6 +33,8 @@ std::string ComparisonDirectionToString(Comparison::Direction direction) {
|
||||
return "LE";
|
||||
case Comparison::Direction::kLt:
|
||||
return "LT";
|
||||
default:
|
||||
LOG(FATAL) << "Attempted to print uninitialized comparison direction";
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,6 +81,8 @@ std::string ComparisonTypeToString(Comparison::Type type) {
|
||||
return "SIGNED";
|
||||
case Comparison::Type::kUnsigned:
|
||||
return "UNSIGNED";
|
||||
default:
|
||||
LOG(FATAL) << "Attempted to print incomplete comparison type";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user