P4 to Git Change 1171714 by marsenau@marsenau_home on 2015/07/17 19:29:59

ECR #304775 - First batch of build fixes for clang.

	Fixes hard source errors and a handful of simple warnings, but leaves most other warnings for later. Other errors not fixed here are from adding compile flags that are not understood.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/clc/src/e2lCommon.h#11 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/opt_level.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/BRIGAsmPrinter.cpp#117 edit
... //depot/stg/opencl/drivers/opencl/opencldefs#162 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#289 edit
Αυτή η υποβολή περιλαμβάνεται σε:
foreman committed 2015-07-17 19:50:05 -04:00
1 γονέας 0767cbd2e6
υποβολή 5b3ecedc9b
2 files changed
+7 -4

No files matched your search

@@ -10,7 +10,10 @@
#include "llvm/Analysis/Passes.h" #include "llvm/Analysis/Passes.h"
namespace llvm { namespace llvm {
class Module; class Module;
class FunctionPassManager;
namespace legacy {
class FunctionPassManager;
}
}; // llvm namespace }; // llvm namespace
namespace amdcl namespace amdcl
{ {
@@ -3993,7 +3993,7 @@ HSAILKernel::loadArguments(
mem = *reinterpret_cast<amd::Memory* const*>(paramaddr); mem = *reinterpret_cast<amd::Memory* const*>(paramaddr);
if (mem == NULL) { if (mem == NULL) {
LogError( "The kernel image argument isn't an image object!"); LogError( "The kernel image argument isn't an image object!");
return false; return nullptr;
} }
image = static_cast<Image*>(dev().getGpuMemory(mem)); image = static_cast<Image*>(dev().getGpuMemory(mem));
} }
@@ -4063,8 +4063,8 @@ HSAILKernel::loadArguments(
} }
else { else {
if (!gpu.createVirtualQueue(queue->size())) { if (!gpu.createVirtualQueue(queue->size())) {
LogError( "Virtual queue creaiton failed!"); LogError("Virtual queue creation failed!");
return false; return nullptr;
} }
vmQueue = gpu.vQueue()->vmAddress(); vmQueue = gpu.vQueue()->vmAddress();
} }