summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-12-22 00:48:05 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-12-22 01:03:16 +0100
commit951a3d03869a4ae639abeee5547ae32d845a2d3e (patch)
tree71f3f47dc9458e6dfd998132963bf0e00e591e6c
parent514bd49b9378df256fa38acc394ba3c4acb29f39 (diff)
downloadsparse-951a3d03869a4ae639abeee5547ae32d845a2d3e.tar.gz
doc: fix list formatting
Sphinx gives a warning on if_convert_phi()'s autodoc because of some 'unknown indentation' caused by using the wrong marker ('#' instead of '*' or '#.'). Use the right markup: '*'. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--simplify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/simplify.c b/simplify.c
index 6397f426..7850bcdc 100644
--- a/simplify.c
+++ b/simplify.c
@@ -179,10 +179,11 @@ static int if_convert_phi(struct instruction *insn)
// @return: the unique result if the phi-node is trivial, NULL otherwise
//
// A phi-node is trivial if it has a single possible result:
-// # all operands are the same
-// # the operands are themselves defined by a chain or cycle of phi-nodes
+// * all operands are the same
+// * the operands are themselves defined by a chain or cycle of phi-nodes
// and the set of all operands involved contains a single value
// not defined by these phi-nodes
+//
// Since the result is unique, these phi-nodes can be removed.
static pseudo_t trivial_phi(pseudo_t pseudo, struct instruction *insn, struct pseudo_list **list)
{