================
@@ -213,7 +215,10 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public
TargetInfo {
}
void setAddressSpaceMap(bool DefaultIsGeneric) {
- AddrSpaceMap = DefaultIsGeneric ? &SPIRDefIsGenMap : &SPIRDefIsPrivMap;
+ if (DefaultIsGeneric)
+ AddrSpaceMap = &SPIRDefIsGenMap;
+ else
+ AddrSpaceMap = &SPIRDefIsPrivMap;
----------------
arsenm wrote:
Actually, can de finally be rid of this DefaultIsGeneric mode switch with the
recent address space changes? This is because OpenCL 1.x was never implemented
properly
https://github.com/llvm/llvm-project/pull/197540
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits