Skip to content

Commit 0bb647d

Browse files
committed
fix a bug that was marking all HLSL builtins as supported
1 parent 7664c3e commit 0bb647d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Basic/Builtins.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ static bool builtinIsSupported(const Builtin::Info &BuiltinInfo,
9090
/* MSMode Unsupported */
9191
if (!LangOpts.MicrosoftExt && (BuiltinInfo.Langs & MS_LANG))
9292
return false;
93+
/* HLSLMode Unsupported */
94+
if (!LangOpts.HLSL && (BuiltinInfo.Langs & HLSL_LANG))
95+
return false;
9396
/* ObjC Unsupported */
9497
if (!LangOpts.ObjC && BuiltinInfo.Langs == OBJC_LANG)
9598
return false;

0 commit comments

Comments
 (0)