summaryrefslogtreecommitdiff
path: root/compiler/optimizing/locations.h
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2016-09-01 15:08:13 -0700
committer Chih-Hung Hsieh <chh@google.com> 2016-09-15 09:09:35 -0700
commita5931185c97c7b17981a9fc5016834a0bdd9480b (patch)
tree22f1a57647d7113c7c5aa5e0f0db5937380f2739 /compiler/optimizing/locations.h
parentfce42f486d9a607fb4fb472ec142a82ceccb6b5f (diff)
Fix google-explicit-constructor warnings in art.
* Add explicit keyword to conversion constructors, or NOLINT for implicit converters. Bug: 28341362 Test: build with WITH_TIDY=1 Change-Id: I1e1ee2661812944904fedadeff97b620506db47d
Diffstat (limited to 'compiler/optimizing/locations.h')
-rw-r--r--compiler/optimizing/locations.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/locations.h b/compiler/optimizing/locations.h
index 43840422ca..c97c4a6c5b 100644
--- a/compiler/optimizing/locations.h
+++ b/compiler/optimizing/locations.h
@@ -488,9 +488,9 @@ class LocationSummary : public ArenaObject<kArenaAllocLocationSummary> {
kCallOnMainOnly
};
- LocationSummary(HInstruction* instruction,
- CallKind call_kind = kNoCall,
- bool intrinsified = false);
+ explicit LocationSummary(HInstruction* instruction,
+ CallKind call_kind = kNoCall,
+ bool intrinsified = false);
void SetInAt(uint32_t at, Location location) {
inputs_[at] = location;