File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -301,23 +301,16 @@ static void reportInvalidHandleTy(
301
301
&Resources) {
302
302
for (auto Res = Resources.begin (), End = Resources.end (); Res != End; Res++) {
303
303
llvm::dxil::ResourceInfo::ResourceBinding Binding = Res->getBinding ();
304
- bool IsBound = false ;
305
304
for (const auto &RD : RDs) {
306
305
if (Binding.overlapsWith (RD)) {
307
- IsBound = true ;
308
- break ;
306
+ TargetExtType *Handle = Res->getHandleTy ();
307
+ auto *TypedBuffer = dyn_cast_or_null<TypedBufferExtType>(Handle);
308
+ auto *Texture = dyn_cast_or_null<TextureExtType>(Handle);
309
+
310
+ if (TypedBuffer != nullptr || Texture != nullptr )
311
+ reportInvalidHandleTyBoundInRs (M, Res->getName (), Res->getBinding ());
309
312
}
310
313
}
311
-
312
- if (!IsBound)
313
- continue ;
314
-
315
- TargetExtType *Handle = Res->getHandleTy ();
316
- auto *TypedBuffer = dyn_cast_or_null<TypedBufferExtType>(Handle);
317
- auto *Texture = dyn_cast_or_null<TextureExtType>(Handle);
318
-
319
- if (TypedBuffer != nullptr || Texture != nullptr )
320
- reportInvalidHandleTyBoundInRs (M, Res->getName (), Res->getBinding ());
321
314
}
322
315
}
323
316
You can’t perform that action at this time.
0 commit comments