The most common generic of adderall is made by Teva (Barr), which is the same company that makes the name-brand version. I think the only potential issue is a slight variance in potency, which can be said for all generic medications. I have never heard of any problems with it, although I believe Sandoz has slightly higher quality control to meet EU standards (this is only hearsay though).
Edit: Did you mean to replace another ADHD med like Strattera, which is technically an antidepressant? Adderall is not typically considered a safe treatment for actual depression, and for good reason.