[PATCH] D21914: [CUDA] Use the multi-element remove function in EraseUnwantedCUDAMatches.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 12 16:30:42 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL275233: [CUDA] Use the multi-element remove function in EraseUnwantedCUDAMatches. (authored by jlebar).
Changed prior to commit:
http://reviews.llvm.org/D21914?vs=62446&id=63751#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21914
Files:
cfe/trunk/lib/Sema/SemaCUDA.cpp
Index: cfe/trunk/lib/Sema/SemaCUDA.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaCUDA.cpp
+++ cfe/trunk/lib/Sema/SemaCUDA.cpp
@@ -163,8 +163,10 @@
[&](const T &M1, const T &M2) { return GetCFP(M1) < GetCFP(M2); }));
// Erase all functions with lower priority.
- Matches.erase(llvm::remove_if(
- Matches, [&](const T &Match) { return GetCFP(Match) < BestCFP; }));
+ Matches.erase(
+ llvm::remove_if(Matches,
+ [&](const T &Match) { return GetCFP(Match) < BestCFP; }),
+ Matches.end());
}
void Sema::EraseUnwantedCUDAMatches(const FunctionDecl *Caller,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21914.63751.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160712/8460f995/attachment-0001.bin>
More information about the cfe-commits
mailing list