Index: src/heap-snapshot-generator.cc |
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
index 0f3e6ad413f270719dc546e792aa45ce8ebf73bc..d89096de8b521b1eefc849c924495140e743ea0f 100644 |
--- a/src/heap-snapshot-generator.cc |
+++ b/src/heap-snapshot-generator.cc |
@@ -1081,7 +1081,9 @@ class IndexedReferencesExtractor : public ObjectVisitor { |
Address field = obj->address() + offset; |
ASSERT(!Memory::Object_at(field)->IsFailure()); |
ASSERT(Memory::Object_at(field)->IsHeapObject()); |
- *field |= kFailureTag; |
+ Object* untagged = *reinterpret_cast<Object**>(field); |
+ intptr_t tagged = reinterpret_cast<intptr_t>(untagged) | kFailureTag; |
+ *reinterpret_cast<Object**>(field) = reinterpret_cast<Object*>(tagged); |
} |
private: |