@@ -73,7 +73,7 @@ declare void @a.func(target("dx.RawBuffer", float, 1, 0) %handle)
7373 for (const User *U : F.users ()) {
7474 const CallInst *CI = cast<CallInst>(U);
7575 const Value *Handle = CI->getArgOperand (0 );
76- const auto Bindings = DBM.findCreationInfo (Handle);
76+ const auto Bindings = DBM.findByUse (Handle);
7777 ASSERT_EQ (Bindings.size (), 1u )
7878 << " Handle should resolve into one resource" ;
7979
@@ -123,7 +123,7 @@ declare target("dx.RawBuffer", float, 1, 0) @ind.func(target("dx.RawBuffer", flo
123123 for (const User *U : F.users ()) {
124124 const CallInst *CI = cast<CallInst>(U);
125125 const Value *Handle = CI->getArgOperand (0 );
126- const auto Bindings = DBM.findCreationInfo (Handle);
126+ const auto Bindings = DBM.findByUse (Handle);
127127 ASSERT_EQ (Bindings.size (), 1u )
128128 << " Handle should resolve into one resource" ;
129129
@@ -176,7 +176,7 @@ declare target("dx.RawBuffer", float, 1, 0) @ind.func(target("dx.RawBuffer", flo
176176 for (const User *U : F.users ()) {
177177 const CallInst *CI = cast<CallInst>(U);
178178 const Value *Handle = CI->getArgOperand (0 );
179- const auto Bindings = DBM.findCreationInfo (Handle);
179+ const auto Bindings = DBM.findByUse (Handle);
180180 ASSERT_EQ (Bindings.size (), 4u )
181181 << " Handle should resolve into four resources" ;
182182
@@ -256,7 +256,7 @@ declare target("dx.RawBuffer", float, 1, 0) @ind.func(target("dx.RawBuffer", flo
256256 for (const User *U : F.users ()) {
257257 const CallInst *CI = cast<CallInst>(U);
258258 const Value *Handle = CI->getArgOperand (0 );
259- const auto Bindings = DBM.findCreationInfo (Handle);
259+ const auto Bindings = DBM.findByUse (Handle);
260260 ASSERT_EQ (Bindings.size (), 2u )
261261 << " Handle should resolve into four resources" ;
262262
0 commit comments