Skip to content

Commit 5a97e1c

Browse files
committed
Correct failure to call getOpcode()
1 parent 0ada80b commit 5a97e1c

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
@@ -730,7 +730,8 @@ static bool buildVectorSupportsSourceMods(const SDNode *N) {
730730
if (N->getValueType(0) != MVT::v2f32)
731731
return true;
732732

733-
if (N->getOperand(0) != ISD::SELECT || N->getOperand(1) != ISD::SELECT)
733+
if (N->getOperand(0)->getOpcode() != ISD::SELECT ||
734+
N->getOperand(1)->getOpcode() != ISD::SELECT)
734735
return true;
735736

736737
return false;

0 commit comments

Comments
 (0)