mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 16:11:29 +00:00
[OpenMP] Fix an issue of wrong return type of DeviceRTLTy::getNumOfDevices
Summary: There is a typo in DeviceRTLTy::getNumOfDevices that the type of its return value is bool. It will lead to a problem of wrong device number returned from omp_get_num_devices. Reviewers: jdoerfert Reviewed By: jdoerfert Subscribers: yaxunl, guansong, openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D79255
This commit is contained in:
parent
81e48ae2b4
commit
cb038927ef
@ -380,7 +380,7 @@ public:
|
||||
return DeviceId >= 0 && DeviceId < NumberOfDevices;
|
||||
}
|
||||
|
||||
bool getNumOfDevices() const { return NumberOfDevices; }
|
||||
int getNumOfDevices() const { return NumberOfDevices; }
|
||||
|
||||
void setRequiresFlag(const int64_t Flags) { this->RequiresFlags = Flags; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user