Skip to content

Commit ab55852

Browse files
committed
Correct failure to call getOpcode()
1 parent ecf6d7d commit ab55852

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

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

737738
return false;

0 commit comments

Comments
 (0)