Skip to content

Commit 8a6955c

Browse files
committed
nfc: LLVM Coding Standards
1 parent fa72b3b commit 8a6955c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/DxilValidation/DxilValidation.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,13 @@ static DxilResourceProperties GetResourceFromHandle(Value *Handle,
176176
}
177177

178178
DxilResourceProperties RP = ValCtx.GetResourceFromVal(Handle);
179-
if (RP.getResourceClass() == DXIL::ResourceClass::Invalid) {
179+
if (RP.getResourceClass() == DXIL::ResourceClass::Invalid)
180180
ValCtx.EmitInstrError(cast<CallInst>(Handle),
181181
ValidationRule::InstrHandleNotFromCreateHandle);
182-
}
183182
if (RP.Basic.IsReorderCoherent &&
184-
!ValCtx.DxilMod.GetShaderModel()->IsSM69Plus()) {
183+
!ValCtx.DxilMod.GetShaderModel()->IsSM69Plus())
185184
ValCtx.EmitInstrError(HandleCall,
186185
ValidationRule::InstrReorderCoherentRequiresSM69);
187-
}
188186

189187
return RP;
190188
}

0 commit comments

Comments
 (0)