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 2a603de commit 658a4fdCopy full SHA for 658a4fd
mlir/lib/Target/LLVM/NVVM/Target.cpp
@@ -122,7 +122,7 @@ ArrayRef<std::string> SerializeGPUModuleBase::getFileList() const {
122
// Try to append `libdevice` from a CUDA toolkit installation.
123
LogicalResult SerializeGPUModuleBase::appendStandardLibs() {
124
StringRef pathRef = getToolkitPath();
125
- if (pathRef.size()) {
+ if (!pathRef.empty()) {
126
SmallVector<char, 256> path;
127
path.insert(path.begin(), pathRef.begin(), pathRef.end());
128
pathRef = StringRef(path.data(), path.size());
0 commit comments