This is an archive of the discontinued LLVM Phabricator instance.

Initialize variable to prevent garbage values (RenderScriptRuntime)
ClosedPublic

Authored by neilparikh on Jul 17 2015, 7:25 PM.

Details

Summary

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. I'm assuming that if it's not set, then it was not found. I'm not 100% sure about this, so a confirmation of this would be good.

This is my first patch to an LLVM project, so please let me know if there's anything I need to fix. I haven't built or run the test suite yet, but if it's required to commit the patch, I can look into figuring that out.

Diff Detail

Repository
rL LLVM

Event Timeline

neilparikh retitled this revision from to Initialize variable to prevent garbage values (RenderScriptRuntime).
neilparikh updated this object.
neilparikh added a reviewer: domipheus.
neilparikh set the repository for this revision to rL LLVM.
neilparikh added a subscriber: lldb-commits.
domipheus accepted this revision.Jul 22 2015, 5:57 AM
domipheus edited edge metadata.

LGTM, sorry for the delay.

This revision is now accepted and ready to land.Jul 22 2015, 5:57 AM

No problem, thanks. What's the process to commit this (I don't have commit access)?

That site says that commit access is granted after a few patches. This is my first patch, so it seems like I need to get someone else commit it for me (based on how I interpreted that page). If that's the case, could you commit this?

This revision was automatically updated to reflect the committed changes.