Skip to content

Commit c1922d2

Browse files
bognerllvm-beanz
andauthored
Update llvm/lib/Analysis/DXILResource.cpp
Co-authored-by: Chris B <[email protected]>
1 parent 952a33a commit c1922d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Analysis/DXILResource.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,8 @@ uint32_t ResourceTypeInfo::getCBufferSize(const DataLayout &DL) const {
385385

386386
Type *ElTy = cast<CBufferExtType>(HandleTy)->getResourceType();
387387

388-
if (auto *LayoutTy = dyn_cast<LayoutExtType>(ElTy)) {
388+
if (auto *LayoutTy = dyn_cast<LayoutExtType>(ElTy))
389389
return LayoutTy->getSize();
390-
}
391390

392391
// TODO: What should we do with unannotated arrays?
393392
return DL.getTypeAllocSize(ElTy);

0 commit comments

Comments
 (0)