summaryrefslogtreecommitdiff
path: root/simpleperf/perf_regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/perf_regs.h')
-rw-r--r--simpleperf/perf_regs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/perf_regs.h b/simpleperf/perf_regs.h
index 7705e50f..98b7810b 100644
--- a/simpleperf/perf_regs.h
+++ b/simpleperf/perf_regs.h
@@ -64,7 +64,7 @@ std::string GetRegName(size_t regno, ArchType arch);
class ScopedCurrentArch {
public:
- ScopedCurrentArch(ArchType arch) : saved_arch(current_arch) {
+ explicit ScopedCurrentArch(ArchType arch) : saved_arch(current_arch) {
current_arch = arch;
}
~ScopedCurrentArch() {