[PATCH] D142532: [SPIRV] Fix build warnings
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 02:50:46 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG01a2d28e8b95: [SPIRV] Fix build warnings (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142532/new/
https://reviews.llvm.org/D142532
Files:
llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
llvm/lib/Target/SPIRV/SPIRVUtils.cpp
Index: llvm/lib/Target/SPIRV/SPIRVUtils.cpp
===================================================================
--- llvm/lib/Target/SPIRV/SPIRVUtils.cpp
+++ llvm/lib/Target/SPIRV/SPIRVUtils.cpp
@@ -206,7 +206,6 @@
case AtomicOrdering::Unordered:
case AtomicOrdering::Monotonic:
case AtomicOrdering::NotAtomic:
- default:
return SPIRV::MemorySemantics::None;
}
}
Index: llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
===================================================================
--- llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
+++ llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
@@ -1587,7 +1587,7 @@
MIB.addUse(buildConstantIntReg(DL.getTypeStoreSize(PType), MIRBuilder, GR));
// Param Aligment: Aligment of block literal structure.
MIB.addUse(
- buildConstantIntReg(DL.getPrefTypeAlignment(PType), MIRBuilder, GR));
+ buildConstantIntReg(DL.getPrefTypeAlign(PType).value(), MIRBuilder, GR));
for (unsigned i = 0; i < LocalSizes.size(); i++)
MIB.addUse(LocalSizes[i]);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142532.492370.patch
Type: text/x-patch
Size: 1004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230126/20c6fc64/attachment.bin>
More information about the llvm-commits
mailing list