Skip to content

Commit 426bdc9

Browse files
committed
Follow Nathan's feedback
1 parent bc4839b commit 426bdc9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llvm/lib/IR/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
975975
auto Size = Ty->getIntParameter(1);
976976
auto Alignment = Ty->getIntParameter(2);
977977

978-
llvm::Type *LayoutType;
978+
llvm::Type *LayoutType = nullptr;
979979
if (Size > 0 && Alignment > 0) {
980980
LayoutType =
981981
ArrayType::get(Type::getIntNTy(C, Alignment), Size * 8 / Alignment);

llvm/test/CodeGen/SPIRV/inline/type.coop-matrix.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
22

3+
; TODO: enable spirv-val once we can add cooperative matrix capability and extension
4+
35
; CHECK: [[float_t:%[0-9]+]] = OpTypeFloat 32
46
; CHECK: [[uint32_t:%[0-9]+]] = OpTypeInt 32 0
57

0 commit comments

Comments
 (0)