Skip to content

Commit c263639

Browse files
committed
[InstSimplify] Add missing const qualifier (NFC)
The context instruction is a "const Instruction *", so that's what getWithInstruction() should accept.
1 parent ba149f6 commit c263639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/InstructionSimplify.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct SimplifyQuery {
126126
: DL(DL), DT(DT), AC(AC), CxtI(CXTI), IIQ(UseInstrInfo),
127127
CanUseUndef(CanUseUndef) {}
128128

129-
SimplifyQuery getWithInstruction(Instruction *I) const {
129+
SimplifyQuery getWithInstruction(const Instruction *I) const {
130130
SimplifyQuery Copy(*this);
131131
Copy.CxtI = I;
132132
return Copy;

0 commit comments

Comments
 (0)