[PATCH] D23361: [OpenCL] AMDGCN: Fix size_t type

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 10 14:21:41 PDT 2016


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 instead


https://reviews.llvm.org/D23361





More information about the cfe-commits mailing list