aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitry <dimitry@google.com>2024-05-02 17:09:17 +0200
committerdimitry <dimitry@google.com>2024-05-02 17:13:15 +0200
commit7cfda990a33f440e9bf309ef277700fd393094c6 (patch)
tree23e81af433777946bb447669d8a68d00eaa5f2c0
parent9811e5e77d12aa4c7329d25ca13db32fcae14cd7 (diff)
downloadbinary_translation-7cfda990a33f440e9bf309ef277700fd393094c6.tar.gz
Actually prohibit passing arbitrary pointers to Jmp
Only const void* is allowed Test: builds Change-Id: I2171cb0995405681b7740479dd2b40e3e4ecf9a3
-rw-r--r--assembler/include/berberis/assembler/x86_64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/assembler/include/berberis/assembler/x86_64.h b/assembler/include/berberis/assembler/x86_64.h
index 110b55ca..c66cc1c7 100644
--- a/assembler/include/berberis/assembler/x86_64.h
+++ b/assembler/include/berberis/assembler/x86_64.h
@@ -179,7 +179,7 @@ class Assembler : public AssemblerX86<Assembler> {
// Make sure only type void* can be passed to function below, not Label* or any other type.
template <typename T>
- auto Jmp(Condition cc, T* target) -> void = delete;
+ auto Jmp(T* target) -> void = delete;
void Jmp(const void* target) {
// There are no jump instruction with properties we need thus we emulate it.