| commit | 7190d480758fd7fe2f9d87bee25b97468fcbf39f | [log] [tgz] |
|---|---|---|
| author | Dan Gohman <gohman@apple.com> | Thu Sep 10 23:37:55 2009 +0000 |
| committer | Dan Gohman <gohman@apple.com> | Thu Sep 10 23:37:55 2009 +0000 |
| tree | dbad9ff5ee1c824d547c5909303d3221c5cbedd6 | |
| parent | 8ef65fbd49bdcd41583424ef40b4ddbd04d7908a [diff] |
Factor out the code for checking that all indices in a getelementptr are within the notional bounds of the static type of the getelementptr (which is not the same as "inbounds") from GlobalOpt into a utility routine, and use it in ConstantFold.cpp to check whether there are any mis-behaved indices. llvm-svn: 81478