Skip to content

Commit 610f435

Browse files
committed
Set default value of NativeLowPrecisionAvailable to false
1 parent 4cb533b commit 610f435

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/DirectX/DXILShaderFlags.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ void ModuleShaderFlags::initialize(Module &M, DXILResourceTypeMap &DRTM,
223223
// NativeLowPrecision can only be set when the command line option
224224
// -enable-16bit-types is provided. This is indicated by the dx.nativelowprec
225225
// module flag being set
226+
NativeLowPrecisionAvailable = false;
226227
if (auto *NativeLowPrec = mdconst::extract_or_null<ConstantInt>(
227228
M.getModuleFlag("dx.nativelowprec")))
228229
if (MMDI.ShaderModelVersion >= VersionTuple(6, 2) &&

0 commit comments

Comments
 (0)