Commit 9f552ee
authored
[LLVM-C] Allow
Allow LLVMGetVolatile() to work with any kind of Instruction, rather
than only memory instructions that accept a volatile flag. For
instructions that can never be volatile, the function now return false
instead of asserting. This matches the behavior of
`Instruction::isVolatile()` in the C++ API.LLVMGetVolatile to work with any kind of Instruction (llvm#163060)1 parent af4367a commit 9f552ee
3 files changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4757 | 4757 | | |
4758 | 4758 | | |
4759 | 4759 | | |
4760 | | - | |
| 4760 | + | |
4761 | 4761 | | |
4762 | 4762 | | |
4763 | 4763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4098 | 4098 | | |
4099 | 4099 | | |
4100 | 4100 | | |
4101 | | - | |
4102 | | - | |
4103 | | - | |
4104 | | - | |
4105 | | - | |
4106 | | - | |
4107 | | - | |
4108 | | - | |
4109 | | - | |
| 4101 | + | |
| 4102 | + | |
4110 | 4103 | | |
4111 | 4104 | | |
4112 | 4105 | | |
| |||
0 commit comments