[llvm] [HLSL] Analyze updateCounter usage (PR #135669)
Helena Kotas via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 11:15:43 PDT 2025
================
@@ -810,9 +848,10 @@ DXILResourceMap::findByUse(const Value *Key) const {
switch (CI->getIntrinsicID()) {
// Found the create, return the binding
case Intrinsic::dx_resource_handlefrombinding: {
- const auto *It = find(CI);
+ auto Pos = CallMap.find(CI);
----------------
hekota wrote:
Consider adding `assert(Pos != CallMap.end())`. The `find` methods on `DXILResourceMap` handled that.
https://github.com/llvm/llvm-project/pull/135669
More information about the llvm-commits
mailing list