mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-06 09:28:50 +00:00
[LLDB] Fix inline variable only used in assertion. (NFC)
This prevents unused variable warning/error in -DNDEBUG builds. The variable was introduced in 5934cd11ea3e. Patch by: Shu-Chun Weng Differential revision: https://reviews.llvm.org/D69451
This commit is contained in:
parent
8da20560ab
commit
10b5cd8ed5
@ -46,7 +46,6 @@ static void emitProperty(Record *Property, raw_ostream &OS) {
|
||||
bool hasDefaultUnsignedValue = Property->getValue("HasDefaultUnsignedValue");
|
||||
bool hasDefaultEnumValue = Property->getValue("HasDefaultEnumValue");
|
||||
bool hasDefaultStringValue = Property->getValue("HasDefaultStringValue");
|
||||
bool hasDefaultBooleanValue = Property->getValue("HasDefaultBooleanValue");
|
||||
|
||||
// Guarantee that every property has a default value.
|
||||
assert((hasDefaultUnsignedValue || hasDefaultEnumValue ||
|
||||
@ -60,7 +59,7 @@ static void emitProperty(Record *Property, raw_ostream &OS) {
|
||||
|
||||
// Guarantee that every boolean property has a boolean default value.
|
||||
assert(!(Property->getValueAsString("Type") == "Boolean" &&
|
||||
!hasDefaultBooleanValue) &&
|
||||
!Property->getValue("HasDefaultBooleanValue")) &&
|
||||
"Boolean property must have a boolean default value.");
|
||||
|
||||
// Guarantee that every string property has a string default value.
|
||||
|
Loading…
x
Reference in New Issue
Block a user