diff mbox

[58/89] Make gimple_label_set_label require a gimple_label

Message ID 1398099480-49147-59-git-send-email-dmalcolm@redhat.com
State New
Headers show

Commit Message

David Malcolm April 21, 2014, 4:57 p.m. UTC
gcc/
	* gimple.h (gimple_label_set_label): Require a gimple_label.
---
 gcc/gimple.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Jeff Law May 12, 2014, 5:24 p.m. UTC | #1
On 04/21/14 10:57, David Malcolm wrote:
> gcc/
> 	* gimple.h (gimple_label_set_label): Require a gimple_label.
OK once prerequisites have gone in.
jeff
\
diff mbox

Patch

diff --git a/gcc/gimple.h b/gcc/gimple.h
index cf21083..38f4ea7 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -3490,9 +3490,8 @@  gimple_label_label (const_gimple gs)
    GS.  */
 
 static inline void
-gimple_label_set_label (gimple gs, tree label)
+gimple_label_set_label (gimple_label gs, tree label)
 {
-  GIMPLE_CHECK (gs, GIMPLE_LABEL);
   gimple_set_op (gs, 0, label);
 }