Skip to content

Commit 71aa858

Browse files
committed
Correct failure to call getOpcode()
1 parent 3a2870e commit 71aa858

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,8 @@ static bool buildVectorSupportsSourceMods(const SDNode *N) {
726726
if (N->getValueType(0) != MVT::v2f32)
727727
return true;
728728

729-
if (N->getOperand(0) != ISD::SELECT || N->getOperand(1) != ISD::SELECT)
729+
if (N->getOperand(0)->getOpcode() != ISD::SELECT ||
730+
N->getOperand(1)->getOpcode() != ISD::SELECT)
730731
return true;
731732

732733
return false;

0 commit comments

Comments
 (0)