r205104 - ARM64: Fix GCC warning in CGBuiltin.cpp

Tim Northover tnorthover at apple.com
Sat Mar 29 08:26:07 PDT 2014


Author: tnorthover
Date: Sat Mar 29 10:26:07 2014
New Revision: 205104

URL: http://llvm.org/viewvc/llvm-project?rev=205104&view=rev
Log:
ARM64: Fix GCC warning in CGBuiltin.cpp

Modified:
    cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=205104&r1=205103&r2=205104&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Sat Mar 29 10:26:07 2014
@@ -5749,7 +5749,7 @@ Value *CodeGenFunction::EmitARM64Builtin
   case NEON::BI__builtin_neon_vmull_v:
     // FIXME: improve sharing scheme to cope with 3 alternative LLVM intrinsics.
     Int = usgn ? Intrinsic::arm64_neon_umull : Intrinsic::arm64_neon_smull;
-    Int = Type.isPoly() ? Intrinsic::arm64_neon_pmull : Int;
+    if (Type.isPoly()) Int = Intrinsic::arm64_neon_pmull;
     return EmitNeonCall(CGM.getIntrinsic(Int, Ty), Ops, "vmull");
   case NEON::BI__builtin_neon_vmax_v:
   case NEON::BI__builtin_neon_vmaxq_v:





More information about the cfe-commits mailing list