From eaeb7cf2913b884f9328433090242f8202e00699 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 17 Aug 2023 03:38:49 +0800 Subject: Correct check for empty target flags (#3115) Co-authored-by: Yong He --- source/slang/slang-options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 216040f98..5d3f7e015 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -2765,7 +2765,7 @@ SlangResult OptionsParser::_parse( } } - if (m_defaultTarget.targetFlags) + if (m_defaultTarget.targetFlags != kDefaultTargetFlags) { if (m_rawTargets.getCount() == 0) { -- cgit v1.2.3