aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/copy.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-01-29 19:10:20 +0100
committerSverker Eriksson <[email protected]>2018-01-29 19:10:20 +0100
commit6a09d85b1762b87d0dc6cf503fcb20080237339b (patch)
tree006b690bba2967bc013836948af9a389dc0adef7 /erts/emulator/beam/copy.c
parent17cdb9694b97854ced0ae257f97a9713d0dcefae (diff)
downloadotp-6a09d85b1762b87d0dc6cf503fcb20080237339b.tar.gz
otp-6a09d85b1762b87d0dc6cf503fcb20080237339b.tar.bz2
otp-6a09d85b1762b87d0dc6cf503fcb20080237339b.zip
More ERTS_RESTRICT usage
Diffstat (limited to 'erts/emulator/beam/copy.c')
-rw-r--r--erts/emulator/beam/copy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/beam/copy.c b/erts/emulator/beam/copy.c
index 8a82154a08..7769a914db 100644
--- a/erts/emulator/beam/copy.c
+++ b/erts/emulator/beam/copy.c
@@ -611,7 +611,7 @@ Eterm copy_struct_x(Eterm obj, Uint sz, Eterm** hpp, ErlOffHeap* off_heap, Uint
Eterm* htop;
Eterm* hbot;
Eterm* hp;
- Eterm* objp;
+ Eterm* ERTS_RESTRICT objp;
Eterm* tp;
Eterm res;
Eterm elem;
@@ -1821,7 +1821,8 @@ all_clean:
*
* NOTE: Assumes that term is a tuple (ptr is an untagged tuple ptr).
*/
-Eterm copy_shallow(Eterm* ptr, Uint sz, Eterm** hpp, ErlOffHeap* off_heap)
+Eterm copy_shallow(Eterm* ERTS_RESTRICT ptr, Uint sz, Eterm** hpp,
+ ErlOffHeap* off_heap)
{
Eterm* tp = ptr;
Eterm* hp = *hpp;