1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/lang/v8/files/patch-src-deoptimizer.cc
Sunpoet Po-Chuan Hsieh 202993b050 - Fix warnings generated by recent snapshot of Clang 3.7.0, including:
- Printing non-void pointers with %p.
  - Left-shifting negative numbers.

PR:		202530
Submitted by:	dim
2015-09-20 20:17:28 +00:00

30 lines
1.0 KiB
C++

--- src/deoptimizer.cc.orig 2013-05-01 12:56:29 UTC
+++ src/deoptimizer.cc
@@ -1392,7 +1392,7 @@ void Deoptimizer::MaterializeHeapObjects
PrintF("Materializing a new heap number %p [%e] in slot %p\n",
reinterpret_cast<void*>(*num),
d.value(),
- d.slot_address());
+ reinterpret_cast<void*>(d.slot_address()));
}
Memory::Object_at(d.slot_address()) = *num;
}
@@ -1474,7 +1474,7 @@ void Deoptimizer::MaterializeHeapNumbers
"for parameter slot #%d\n",
reinterpret_cast<void*>(*num),
d.value(),
- d.slot_address(),
+ reinterpret_cast<void*>(d.slot_address()),
index);
}
@@ -1490,7 +1490,7 @@ void Deoptimizer::MaterializeHeapNumbers
"for expression slot #%d\n",
reinterpret_cast<void*>(*num),
d.value(),
- d.slot_address(),
+ reinterpret_cast<void*>(d.slot_address()),
index);
}