Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
[Merge chakra-core/ChakraCore@e0141fb48b] [MERGE #3503 @sigatrev] Fix…
Browse files Browse the repository at this point in the history
… Issue #3497: move initialization to constructor

Merge pull request #3503 from sigatrev:ConstructorInitialization
  • Loading branch information
chakrabot authored and kfarnung committed Aug 10, 2017
1 parent 569128f commit a1a64d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deps/chakrashim/core/lib/Backend/ValueInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ class JsTypeValueInfo : public ValueInfo

JsTypeValueInfo(const JsTypeValueInfo& other)
: ValueInfo(Uninitialized, ValueStructureKind::JsType),
jsType(other.jsType), jsTypeSet(other.jsTypeSet)
jsType(other.jsType), jsTypeSet(other.jsTypeSet), isShared(false)
{
}

Expand Down Expand Up @@ -576,9 +576,7 @@ class JsTypeValueInfo : public ValueInfo
public:
JsTypeValueInfo * Copy(JitArenaAllocator *const allocator) const
{
JsTypeValueInfo * newInfo = JitAnew(allocator, JsTypeValueInfo, *this);
newInfo->isShared = false;
return newInfo;
return JitAnew(allocator, JsTypeValueInfo, *this);
}

JITTypeHolder GetJsType() const
Expand Down

0 comments on commit a1a64d1

Please sign in to comment.