diff options
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVVMReflect.cpp')
-rw-r--r-- | llvm/lib/Target/NVPTX/NVVMReflect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/NVPTX/NVVMReflect.cpp b/llvm/lib/Target/NVPTX/NVVMReflect.cpp index c02e487..4024953 100644 --- a/llvm/lib/Target/NVPTX/NVVMReflect.cpp +++ b/llvm/lib/Target/NVPTX/NVVMReflect.cpp @@ -208,7 +208,7 @@ static bool runNVVMReflect(Function &F, unsigned SmVersion) { // Removing via isInstructionTriviallyDead may add duplicates to the ToRemove // array. Filter out the duplicates before starting to erase from parent. - llvm::sort(ToRemove); + std::sort(ToRemove.begin(), ToRemove.end()); auto NewLastIter = llvm::unique(ToRemove); ToRemove.erase(NewLastIter, ToRemove.end()); |