Commit 491ac8f
committed
[LibCalls] Cast Char argument to 'int' before calling emitFPutC
The helpers in BuildLibCalls normally expect that the Value
arguments already have the correct type (matching the lib call
signature). And exception has been emitFPutC which casted the Char
argument to 'int' using CreateIntCast. This patch moves the cast to
the caller instead of doing it inside emitFPutC.
I think it makes sense to make the BuildLibCall API:s a bit
more consistent this way, despite the need to handle the int cast
in two different places now.
Differential Revision: https://reviews.llvm.org/D1350661 parent aa1b64c commit 491ac8f
File tree
3 files changed
+10
-8
lines changed- llvm
- include/llvm/Transforms/Utils
- lib/Transforms/Utils
3 files changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
1844 | | - | |
1845 | | - | |
1846 | 1844 | | |
1847 | 1845 | | |
1848 | 1846 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3209 | 3209 | | |
3210 | 3210 | | |
3211 | 3211 | | |
3212 | | - | |
| 3212 | + | |
3213 | 3213 | | |
3214 | 3214 | | |
3215 | | - | |
3216 | | - | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
3217 | 3219 | | |
3218 | 3220 | | |
3219 | 3221 | | |
| |||
3280 | 3282 | | |
3281 | 3283 | | |
3282 | 3284 | | |
3283 | | - | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
3284 | 3288 | | |
3285 | 3289 | | |
3286 | 3290 | | |
| |||
0 commit comments