diff options
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index 35d4fab..c39d6d0 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -3237,8 +3237,7 @@ expand_block_edges (struct tm_region *const region, basic_block bb) || (gimple_call_flags (call_stmt) & ECF_TM_BUILTIN) == 0) continue; - if (DECL_FUNCTION_CODE (gimple_call_fndecl (call_stmt)) - == BUILT_IN_TM_ABORT) + if (gimple_call_builtin_p (call_stmt, BUILT_IN_TM_ABORT)) { // If we have a ``_transaction_cancel [[outer]]'', there is only // one abnormal edge: to the transaction marked OUTER. |