From 762df17aa7d4bd06804ea68a14dcd96eb1c69f79 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 5 Mar 2009 20:27:59 -0700 Subject: [PATCH] use Architecture::plan in BranchEvent ctor to determine acceptable types for address --- src/compiler.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index 5a27129819..4aef1d1f22 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -3426,7 +3426,16 @@ class BranchEvent: public Event { { address->addPredecessor(c, this); - addRead(c, this, address, read(c, SiteMask(~0, ~0, AnyFrameIndex))); + bool thunk; + uint8_t typeMask; + uint64_t registerMask; + + c->arch->plan(type, BytesPerWord, &typeMask, ®isterMask, &thunk); + + assert(c, thunk == 0); + + addRead(c, this, address, read + (c, SiteMask(typeMask, registerMask, AnyFrameIndex))); } virtual const char* name() {