We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0359aed commit 5467bd5Copy full SHA for 5467bd5
llvm/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp
@@ -73,13 +73,10 @@ using namespace llvm::AMDGPU;
73
public: \
74
static const MCExpr *Phony; \
75
template <typename U> static const MCExpr *&Get(U &C) { \
76
- if constexpr (IsMCExpr##member::RESULT) { \
77
- assert(IsMCExpr##member::RESULT && \
78
- "Trying to retrieve member that does not exist."); \
+ if constexpr (IsMCExpr##member::RESULT) \
79
return C.member; \
80
- } else { \
+ else \
81
return Phony; \
82
- } \
83
} \
84
}; \
85
const MCExpr *GetMember##member::Phony = nullptr;
0 commit comments