forked from OSchip/llvm-project
Initialize variable to prevent garbage values (RenderScriptRuntime)
The kernels_found variable is not initialized, so if it is not assigned true on line 823, then it will be a garbage value in the branch condition on line 828. This patch initializes the variable to false. Patch by neilparikh. Reviewers: domipheus Differential Revision: http://reviews.llvm.org/D11323 llvm-svn: 243104
This commit is contained in:
parent
4d45ff2b87
commit
7340e1f8da
|
@ -776,7 +776,7 @@ RenderScriptRuntime::AttemptBreakpointAtKernelName(Stream &strm, const char* nam
|
|||
return;
|
||||
}
|
||||
|
||||
bool kernels_found;
|
||||
bool kernels_found = false;
|
||||
ConstString kernel_name(name);
|
||||
for (const auto &module : m_rsmodules)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue