diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-09-16 12:01:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-16 12:01:55 +0200 |
commit | 08dd8ff76063097d7ceea3ec2877028e57ede211 (patch) | |
tree | 467ec1506f7889c2faeb0280b8c7de4adc4abe7b /js/src/jit/IonCode.h | |
parent | 351ffa462d2314c4b60369e2ba0f13b5d90f03b5 (diff) | |
parent | 0712ac7f81a455b21e0065b6a212b64385835e5e (diff) | |
download | UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.gz UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.lz UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.tar.xz UXP-08dd8ff76063097d7ceea3ec2877028e57ede211.zip |
Merge pull request #767 from trav90/class-memaccess-errors
Fix more -Wclass-memaccess warnings (part 2)
Diffstat (limited to 'js/src/jit/IonCode.h')
-rw-r--r-- | js/src/jit/IonCode.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/js/src/jit/IonCode.h b/js/src/jit/IonCode.h index c581aa62e..55c3d4dad 100644 --- a/js/src/jit/IonCode.h +++ b/js/src/jit/IonCode.h @@ -9,7 +9,6 @@ #include "mozilla/Atomics.h" #include "mozilla/MemoryReporting.h" -#include "mozilla/PodOperations.h" #include "jstypes.h" @@ -692,17 +691,15 @@ struct IonScriptCounts { private: // Any previous invalidated compilation(s) for the script. - IonScriptCounts* previous_; + IonScriptCounts* previous_ = nullptr; // Information about basic blocks in this script. - size_t numBlocks_; - IonBlockCounts* blocks_; + size_t numBlocks_ = 0; + IonBlockCounts* blocks_ = nullptr; public: - IonScriptCounts() { - mozilla::PodZero(this); - } + IonScriptCounts() = default; ~IonScriptCounts() { for (size_t i = 0; i < numBlocks_; i++) |