We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14dee0a commit 01ee03cCopy full SHA for 01ee03c
llvm/lib/Transforms/Coroutines/CoroElide.cpp
@@ -104,7 +104,7 @@ static void replaceWithConstant(Constant *Value,
104
// See if any operand of the call instruction references the coroutine frame.
105
static bool operandReferences(CallInst *CI, AllocaInst *Frame, AAResults &AA) {
106
for (Value *Op : CI->operand_values())
107
- if (!AA.isNoAlias(Op, Frame))
+ if (Op->getType()->isPointerTy() && !AA.isNoAlias(Op, Frame))
108
return true;
109
return false;
110
}
0 commit comments