Skip to content

Commit 7c3bd38

Browse files
committed
forgot to set Changed variable
1 parent 7d0e797 commit 7c3bd38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/NVPTX/NVVMReflect.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ bool NVVMReflect::runOnModule(Module &M) {
229229
return false;
230230
populateReflectMap(M);
231231
bool Changed = true;
232-
handleReflectFunction(M, NVVM_REFLECT_FUNCTION);
233-
handleReflectFunction(M, NVVM_REFLECT_OCL_FUNCTION);
234-
handleReflectFunction(M, Intrinsic::getName(Intrinsic::nvvm_reflect));
232+
Changed |= handleReflectFunction(M, NVVM_REFLECT_FUNCTION);
233+
Changed |= handleReflectFunction(M, NVVM_REFLECT_OCL_FUNCTION);
234+
Changed |= handleReflectFunction(M, Intrinsic::getName(Intrinsic::nvvm_reflect));
235235
return Changed;
236236
}
237237

0 commit comments

Comments
 (0)