mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Fix a warning on gcc 4.4.
SelectionDAGBuilder.cpp:4294: warning: suggest explicit braces to avoid ambiguous ‘else’ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -4295,11 +4295,12 @@ static SDValue ExpandPowI(DebugLoc DL, SDValue LHS, SDValue RHS, | |||||||
|       SDValue Res;  // Logically starts equal to 1.0 |       SDValue Res;  // Logically starts equal to 1.0 | ||||||
|       SDValue CurSquare = LHS; |       SDValue CurSquare = LHS; | ||||||
|       while (Val) { |       while (Val) { | ||||||
|         if (Val & 1) |         if (Val & 1) { | ||||||
|           if (Res.getNode()) |           if (Res.getNode()) | ||||||
|             Res = DAG.getNode(ISD::FMUL, DL,Res.getValueType(), Res, CurSquare); |             Res = DAG.getNode(ISD::FMUL, DL,Res.getValueType(), Res, CurSquare); | ||||||
|           else |           else | ||||||
|             Res = CurSquare;  // 1.0*CurSquare. |             Res = CurSquare;  // 1.0*CurSquare. | ||||||
|  |         } | ||||||
|  |  | ||||||
|         CurSquare = DAG.getNode(ISD::FMUL, DL, CurSquare.getValueType(), |         CurSquare = DAG.getNode(ISD::FMUL, DL, CurSquare.getValueType(), | ||||||
|                                 CurSquare, CurSquare); |                                 CurSquare, CurSquare); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user