arsenm added a subscriber: arsenm.
================
Comment at: lib/Basic/Targets.cpp:2008-2010
@@ +2007,5 @@
+ uint64_t getOpenCLMaxPointerWidth() const override {
+ if (GPU <= GK_CAYMAN)
+ return 32;
+ return 64;
+ }
----------------
Should use ternary operator and check the triple arch insteadhttps://reviews.llvm.org/D23361 _______________________________________________ cfe-commits mailing list [email protected] http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
