diff options
Diffstat (limited to 'lib/SPIRV/SPIRVUtil.cpp')
-rw-r--r-- | lib/SPIRV/SPIRVUtil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/SPIRV/SPIRVUtil.cpp b/lib/SPIRV/SPIRVUtil.cpp index 3fb9856..69459d4 100644 --- a/lib/SPIRV/SPIRVUtil.cpp +++ b/lib/SPIRV/SPIRVUtil.cpp @@ -839,7 +839,7 @@ std::set<std::string> getNamedMDAsStringSet(Module *M, NamedMDNode *NamedMD = M->getNamedMetadata(MDName); std::set<std::string> StrSet; if (!NamedMD) - return std::move(StrSet); + return StrSet; assert(NamedMD->getNumOperands() > 0 && "Invalid SPIR"); @@ -848,10 +848,10 @@ std::set<std::string> getNamedMDAsStringSet(Module *M, if (!MD || MD->getNumOperands() == 0) continue; for (unsigned J = 0, N = MD->getNumOperands(); J != N; ++J) - StrSet.insert(std::move(getMDOperandAsString(MD, J))); + StrSet.insert(getMDOperandAsString(MD, J)); } - return std::move(StrSet); + return StrSet; } std::tuple<unsigned, unsigned, std::string> getSPIRVSource(Module *M) { @@ -1296,7 +1296,7 @@ static SPIR::MangleError manglePipeBuiltin(const SPIR::FunctionDescriptor &fd, return SPIR::MANGLE_NULL_FUNC_DESCRIPTOR; } mangledName.assign("__" + fd.name); - if (fd.name.compare("write_pipe") == 0 || fd.name.compare("read_pipe") == 0) { + if (fd.name == "write_pipe" || fd.name == "read_pipe") { // add "_2" or "_4" postfix reflecting the number of explicit args. mangledName.append("_"); // subtruct 2 in order to not count size and alignment of packet. |