Skip to content

Commit

Permalink
Update for LLVM iterator change
Browse files Browse the repository at this point in the history
Fix the build after LLVM commit 0a92aff721f4 ("Replace uses of
std::iterator with explicit using", 2021-04-12).
  • Loading branch information
svenvh committed Apr 13, 2021
1 parent ff7d062 commit f653af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ SPIRVFunction *LLVMToSPIRVBase::transFunctionDecl(Function *F) {
if (F->isIntrinsic() && (!BM->isSPIRVAllowUnknownIntrinsicsEnabled() ||
isKnownIntrinsic(F->getIntrinsicID()))) {
// We should not translate LLVM intrinsics as a function
assert(none_of(F->user_begin(), F->user_end(),
assert(none_of(F->users(),
[this](User *U) { return getTranslatedValue(U); }) &&
"LLVM intrinsics shouldn't be called in SPIRV");
return nullptr;
Expand Down

0 comments on commit f653af3

Please sign in to comment.