mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
enable & switch to clang 6.0
Change-Id: I61910614ddaa37db18a3d995fa94efb03238279a Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
ab507d73de
commit
972c080083
@ -33,8 +33,14 @@ class ArrayRef {
|
||||
using const_iterator = const DataType *;
|
||||
|
||||
template <typename IteratorType>
|
||||
ArrayRef(IteratorType b, IteratorType e)
|
||||
: b(&*b), e(&*(e - 1) + 1) {
|
||||
ArrayRef(IteratorType b, IteratorType e) {
|
||||
if (b != nullptr) {
|
||||
this->b = &*b;
|
||||
this->e = &*(e - 1) + 1;
|
||||
} else {
|
||||
this->b = nullptr;
|
||||
this->e = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename IteratorType>
|
||||
@ -52,9 +58,7 @@ class ArrayRef {
|
||||
: b(&array[0]), e(&array[Size]) {
|
||||
}
|
||||
|
||||
ArrayRef()
|
||||
: b(0), e(0) {
|
||||
}
|
||||
ArrayRef() = default;
|
||||
|
||||
size_t size() const {
|
||||
return e - b;
|
||||
@ -94,8 +98,8 @@ class ArrayRef {
|
||||
}
|
||||
|
||||
private:
|
||||
DataType *b;
|
||||
DataType *e;
|
||||
DataType *b = nullptr;
|
||||
DataType *e = nullptr;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
Reference in New Issue
Block a user