summaryrefslogtreecommitdiffstats
path: root/lldb/utils/TableGen
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-25 15:46:24 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-25 15:47:17 -0700
commit10b5cd8ed5272d135ac75a94d3cf5854a0912f84 (patch)
tree32058b66837edeff1f586a384e3d8f6378286041 /lldb/utils/TableGen
parent8da20560ab0da11c47d4718712c9c455e71c2b51 (diff)
downloadbcm5719-llvm-10b5cd8ed5272d135ac75a94d3cf5854a0912f84.tar.gz
bcm5719-llvm-10b5cd8ed5272d135ac75a94d3cf5854a0912f84.zip
[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
Diffstat (limited to 'lldb/utils/TableGen')
-rw-r--r--lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
index 51c15a715f3..f36deeebf90 100644
--- a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
+++ b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
@@ -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.
OpenPOWER on IntegriCloud