Skip to content

Commit 5467bd5

Browse files
Address a comment.
1 parent 0359aed commit 5467bd5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,10 @@ using namespace llvm::AMDGPU;
7373
public: \
7474
static const MCExpr *Phony; \
7575
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."); \
76+
if constexpr (IsMCExpr##member::RESULT) \
7977
return C.member; \
80-
} else { \
78+
else \
8179
return Phony; \
82-
} \
8380
} \
8481
}; \
8582
const MCExpr *GetMember##member::Phony = nullptr;

0 commit comments

Comments
 (0)