null pointer check missing in LoopInfo

In LLVM 1.5, the function isLoopHeader fails to check for a null
pointer after calling getLoopFor. Dunno if this is fixed in CVS, but
attaching a patch anyway ...

Sameer.

llvm_loopinfo.patch (457 Bytes)

Thanks, applied:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050627/026861.html

-Chris