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:
Ewan Crawford 2015-07-24 10:01:11 +00:00
parent 4d45ff2b87
commit 7340e1f8da
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{