Skip to content

Commit 1b95e76

Browse files
[Instrumentation] Fix a warning
This patch fixes: llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp:3840:14: error: unused variable 'NumArgOperands' [-Werror,-Wunused-variable]
1 parent 95e44d3 commit 1b95e76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3837,8 +3837,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
38373837
// the second argument is guranteed to be a constant integer.
38383838
void handleRoundPdPsIntrinsic(IntrinsicInst &I) {
38393839
assert(I.getArgOperand(0)->getType() == I.getType());
3840-
unsigned NumArgOperands = I.arg_size();
3841-
assert(NumArgOperands == 2);
3840+
assert(I.arg_size() == 2);
38423841
assert(isa<ConstantInt>(I.getArgOperand(1)));
38433842

38443843
IRBuilder<> IRB(&I);

0 commit comments

Comments
 (0)