Commit 2f5cc5b
committed
Prevent bogus return when constant fold does not happen.
Rather then return the correct result I believe we do not hit this
issue because the input has been restricted to constants that we
know can be constant folded and so I've replace the broken code with
an assert, which is in keeping with the other code in this area that
requires constant folding to work.1 parent e0858b1 commit 2f5cc5b
File tree
2 files changed
+12
-4
lines changed- llvm
- lib/Analysis
- test/Transforms/InstSimplify
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
0 commit comments