P4 to Git Change 1590896 by vsytchen@vsytchen-win10 on 2018/08/08 14:49:41

SWDEV-79445 - OCL generic changes and code clean-up

	1. std::auto_ptr is deprecated in c++11 and removed in c++17. Use unique_ptr instead.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/15576/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcompiler.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#65 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.hpp#21 edit
Этот коммит содержится в:
foreman
2018-08-08 15:05:57 -04:00
родитель a326b96d41
Коммит ac9ebe294b
3 изменённых файлов: 6 добавлений и 6 удалений
+2 -2
Просмотреть файл
@@ -1217,7 +1217,7 @@ bool LightningProgram::createBinary(amd::option::Options* options) {
bool LightningProgram::linkImpl(const std::vector<Program*>& inputPrograms,
amd::option::Options* options, bool createLibrary) {
using namespace amd::opencl_driver;
std::auto_ptr<Compiler> C(newCompilerInstance());
std::unique_ptr<Compiler> C(newCompilerInstance());
std::vector<Data*> inputs;
for (auto program : (const std::vector<LightningProgram*>&)inputPrograms) {
@@ -1327,7 +1327,7 @@ bool LightningProgram::linkImpl(amd::option::Options* options) {
return false;
}
std::auto_ptr<Compiler> C(newCompilerInstance());
std::unique_ptr<Compiler> C(newCompilerInstance());
// call LinkLLVMBitcode
std::vector<Data*> inputs;