diff options
| author | Dan Gohman <gohman@apple.com> | 2007-12-14 15:41:34 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-12-14 15:41:34 +0000 |
| commit | 8a332b235db5863e7b1ea87bdf7ae791b1c4f1f5 (patch) | |
| tree | c045f7b661a5eff21c37d5cec59854a8f9afc991 /llvm/lib/CodeGen/SimpleRegisterCoalescing.h | |
| parent | 11352df8e42037dd5f8df9a00572793a10bf986a (diff) | |
| download | bcm5719-llvm-8a332b235db5863e7b1ea87bdf7ae791b1c4f1f5.tar.gz bcm5719-llvm-8a332b235db5863e7b1ea87bdf7ae791b1c4f1f5.zip | |
Add explicit keywords, and fix a minor typo that they uncovered.
llvm-svn: 45034
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.h')
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h index c3b28956635..fcdab4a5182 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h @@ -48,7 +48,7 @@ namespace llvm { /// struct CopyRecSort : public std::binary_function<CopyRec,CopyRec,bool> { JoinPriorityQueue<CopyRecSort> *JPQ; - CopyRecSort(JoinPriorityQueue<CopyRecSort> *jpq) : JPQ(jpq) {} + explicit CopyRecSort(JoinPriorityQueue<CopyRecSort> *jpq) : JPQ(jpq) {} CopyRecSort(const CopyRecSort &RHS) : JPQ(RHS.JPQ) {} bool operator()(CopyRec left, CopyRec right) const; }; @@ -61,7 +61,8 @@ namespace llvm { std::priority_queue<CopyRec, std::vector<CopyRec>, SF> Queue; public: - JoinPriorityQueue(SimpleRegisterCoalescing *rc) : Rc(rc), Queue(SF(this)) {} + explicit JoinPriorityQueue(SimpleRegisterCoalescing *rc) + : Rc(rc), Queue(SF(this)) {} bool empty() const { return Queue.empty(); } void push(CopyRec R) { Queue.push(R); } |

