We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952a33a commit c1922d2Copy full SHA for c1922d2
llvm/lib/Analysis/DXILResource.cpp
@@ -385,9 +385,8 @@ uint32_t ResourceTypeInfo::getCBufferSize(const DataLayout &DL) const {
385
386
Type *ElTy = cast<CBufferExtType>(HandleTy)->getResourceType();
387
388
- if (auto *LayoutTy = dyn_cast<LayoutExtType>(ElTy)) {
+ if (auto *LayoutTy = dyn_cast<LayoutExtType>(ElTy))
389
return LayoutTy->getSize();
390
- }
391
392
// TODO: What should we do with unannotated arrays?
393
return DL.getTypeAllocSize(ElTy);
0 commit comments