diff --git a/rocclr/compiler/lib/backends/common/opt_level.hpp b/rocclr/compiler/lib/backends/common/opt_level.hpp index 5037bb35fe..e7a8b761a7 100644 --- a/rocclr/compiler/lib/backends/common/opt_level.hpp +++ b/rocclr/compiler/lib/backends/common/opt_level.hpp @@ -10,7 +10,10 @@ #include "llvm/Analysis/Passes.h" namespace llvm { class Module; - class FunctionPassManager; + + namespace legacy { + class FunctionPassManager; + } }; // llvm namespace namespace amdcl { diff --git a/rocclr/runtime/device/gpu/gpukernel.cpp b/rocclr/runtime/device/gpu/gpukernel.cpp index a5f3e8af4f..c68008e3ad 100644 --- a/rocclr/runtime/device/gpu/gpukernel.cpp +++ b/rocclr/runtime/device/gpu/gpukernel.cpp @@ -3993,7 +3993,7 @@ HSAILKernel::loadArguments( mem = *reinterpret_cast(paramaddr); if (mem == NULL) { LogError( "The kernel image argument isn't an image object!"); - return false; + return nullptr; } image = static_cast(dev().getGpuMemory(mem)); } @@ -4063,8 +4063,8 @@ HSAILKernel::loadArguments( } else { if (!gpu.createVirtualQueue(queue->size())) { - LogError( "Virtual queue creaiton failed!"); - return false; + LogError("Virtual queue creation failed!"); + return nullptr; } vmQueue = gpu.vQueue()->vmAddress(); }