Duncan P. N. Exon Smith ca06508c43 IR: Don't add inbounds to GEPs of extern_weak variables
Global variables that have `extern_weak` linkage may be null, so it's
incorrect to add `inbounds` when constant folding.

This also fixes a bug when parsing global aliases, whose forward
reference placeholders are global variables with `extern_weak` linkage.
If GEPs to these aliases are encountered before the alias itself, the
GEPs would incorrectly gain the `inbounds` keyword as well.

llvm-svn: 215803
2014-08-16 01:54:32 +00:00
..
2014-07-18 15:51:28 +00:00
2014-06-27 18:19:56 +00:00
2014-06-27 18:19:56 +00:00
2014-07-24 14:25:39 +00:00
2014-08-11 18:04:46 +00:00
2014-07-24 14:25:39 +00:00
2014-07-24 14:25:39 +00:00
2014-07-03 16:12:55 +00:00
2014-06-12 16:06:51 +00:00
2014-08-08 15:57:37 +00:00
2014-04-09 14:47:27 +00:00
2014-08-01 23:28:49 +00:00