Skip to content

Commit ce192b8

Browse files
[Vectorize] Fix a warning
This patch fixes: llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp:1278:12: error: unused variable 'Op0' [-Werror,-Wunused-variable]
1 parent f8350f1 commit ce192b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,9 +1275,8 @@ void VPWidenEVLRecipe::execute(VPTransformState &State) {
12751275
State.setDebugLocFrom(getDebugLoc());
12761276
assert(State.UF == 1 && "Expected only UF == 1 when vectorizing with "
12771277
"explicit vector length.");
1278-
VPValue *Op0 = getOperand(0);
12791278

1280-
assert(State.get(Op0, 0)->getType()->isVectorTy() &&
1279+
assert(State.get(getOperand(0), 0)->getType()->isVectorTy() &&
12811280
"VPWidenEVLRecipe should not be used for scalars");
12821281

12831282
VPValue *EVL = getEVL();

0 commit comments

Comments
 (0)