Skip to content

Commit

Permalink
Merge pull request #39 from cyclaero/master
Browse files Browse the repository at this point in the history
issue #31 – LLVM does not allow Implicit conversions between built-in vector data types
  • Loading branch information
AvtechScientific authored Nov 12, 2017
2 parents f4e3674 + 0de54a8 commit 3e1b420
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/acl/DataTypes/aclConstant.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ namespace acl

template <typename T> std::string Constant<T>::str(const KernelConfiguration & kernelConfig) const
{
return valueStr;
#ifdef __llvm__
return (typeid(T) == typeid(float) || typeid(T) == typeid(double)) ? "(float)"+valueStr : valueStr;
#else
return valueStr;
#endif
}


Expand Down

0 comments on commit 3e1b420

Please sign in to comment.