[clang] 0bca18d - [CIR][NFC] Add 'matrix' type to CIRGenExprConstant.cpp switch (#184852)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 5 11:06:26 PST 2026
Author: Erich Keane
Date: 2026-03-05T19:06:20Z
New Revision: 0bca18db8d67f9b622117546f441611688a1e5ae
URL: https://github.com/llvm/llvm-project/commit/0bca18db8d67f9b622117546f441611688a1e5ae
DIFF: https://github.com/llvm/llvm-project/commit/0bca18db8d67f9b622117546f441611688a1e5ae.diff
LOG: [CIR][NFC] Add 'matrix' type to CIRGenExprConstant.cpp switch (#184852)
This just adds this as an NYI, but this will suppress the Wswitch
warning.
Added:
Modified:
clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
Removed:
################################################################################
diff --git a/clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp b/clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
index 2a7ee75b42dea..9d17c8937aac9 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
@@ -1950,6 +1950,9 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value,
cgm.errorNYI(
"ConstExprEmitter::tryEmitPrivate fixed point, addr label
diff ");
return {};
+ case APValue::Matrix:
+ cgm.errorNYI("ConstExprEmitter::tryEmitPrivate matrix");
+ return {};
}
llvm_unreachable("Unknown APValue kind");
}
More information about the cfe-commits
mailing list