Skip to content

Commit 6f13ff5

Browse files
DamonFooljoaosaffran
authored andcommitted
[MemorySanitizer] Silence an unused-variable warning (NFC)
/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp:2622:22: error: unused variable 'ReturnType' [-Werror,-Wunused-variable] FixedVectorType *ReturnType = cast<FixedVectorType>(I.getType()); ^ 1 error generated.
1 parent 187bd1f commit 6f13ff5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
26192619
cast<FixedVectorType>(I.getArgOperand(0)->getType());
26202620
if (I.arg_size() == 2)
26212621
assert(ParamType == cast<FixedVectorType>(I.getArgOperand(1)->getType()));
2622-
FixedVectorType *ReturnType = cast<FixedVectorType>(I.getType());
2622+
[[maybe_unused]] FixedVectorType *ReturnType =
2623+
cast<FixedVectorType>(I.getType());
26232624
assert(ParamType->getNumElements() * I.arg_size() ==
26242625
2 * ReturnType->getNumElements());
26252626

0 commit comments

Comments
 (0)