summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-12-03 11:54:14 -0800
committerGitHub <noreply@github.com>2018-12-03 11:54:14 -0800
commit3d98b5bb767a2bacf791ad000e75d4ed8df1a385 (patch)
tree10556d85e026605a0c465474cbfbf42cb09fb831
parent120bc39f96ad2ae97f65fe677dd2b875159d406d (diff)
downloadbinaryen-3d98b5bb767a2bacf791ad000e75d4ed8df1a385.tar.gz
binaryen-3d98b5bb767a2bacf791ad000e75d4ed8df1a385.tar.bz2
binaryen-3d98b5bb767a2bacf791ad000e75d4ed8df1a385.zip
Use `= default` rather than {} for empty destructors (#1794)
-rw-r--r--src/cfg/Relooper.h2
-rw-r--r--src/pass.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cfg/Relooper.h b/src/cfg/Relooper.h
index b3a2b65f6..162fd3149 100644
--- a/src/cfg/Relooper.h
+++ b/src/cfg/Relooper.h
@@ -308,7 +308,7 @@ struct Shape {
ShapeType Type;
Shape(ShapeType TypeInit) : Id(-1), Next(NULL), Type(TypeInit) {}
- virtual ~Shape() {}
+ virtual ~Shape() = default;
virtual wasm::Expression* Render(RelooperBuilder& Builder, bool InLoop) = 0;
diff --git a/src/pass.h b/src/pass.h
index 326c3d5b9..8064edc32 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -201,7 +201,7 @@ private:
//
class Pass {
public:
- virtual ~Pass() {};
+ virtual ~Pass() = default;
// Override this to perform preparation work before the pass runs.
// This will be called before the pass is run on a module.