| commit | 1ad35fbd78f6965bb59572e1cf6a2223ee767c57 | [log] [tgz] |
|---|---|---|
| author | Stephen Hines <srhines@google.com> | Mon Mar 26 10:20:46 2012 -0700 |
| committer | Stephen Hines <srhines@google.com> | Mon Mar 26 10:26:28 2012 -0700 |
| tree | 431c9534d47b60fae2975799093a586ebab83557 | |
| parent | 98265568b11f2ca55dcdeca62f3d6fb4899346a3 [diff] |
Check infile arguments for BitcodeWrapperer. It would be better to use a const reference for infile, but unfortunately, we must mutate it during the lifetime of BitcodeWrapperer - Seek() is the primary issue here. Since we don't want to use a non-const reference, we instead insert appropriate NULL checks into the various functions where infile is used. Change-Id: Ic408c9dba684b57237cc8e29fff61c103161f7b3