[llvm] r345850 - [ARM] Attempt to fix ppc64be buildbot
Sam Parker via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 09:44:45 PDT 2018
Author: sam_parker
Date: Thu Nov 1 09:44:45 2018
New Revision: 345850
URL: http://llvm.org/viewvc/llvm-project?rev=345850&view=rev
Log:
[ARM] Attempt to fix ppc64be buildbot
Modified:
llvm/trunk/lib/Target/ARM/ARMCodeGenPrepare.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMCodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCodeGenPrepare.cpp?rev=345850&r1=345849&r2=345850&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCodeGenPrepare.cpp Thu Nov 1 09:44:45 2018
@@ -633,8 +633,9 @@ void IRPromoter::TruncateSinks(SmallPtrS
LLVM_DEBUG(dbgs() << "ARM CGP: Creating " << *TruncTy << " Trunc for "
<< *V << "\n");
Builder.SetInsertPoint(cast<Instruction>(V));
- auto *Trunc = cast<Instruction>(Builder.CreateTrunc(V, TruncTy));
- NewInsts.insert(Trunc);
+ auto *Trunc = dyn_cast<Instruction>(Builder.CreateTrunc(V, TruncTy));
+ if (Trunc)
+ NewInsts.insert(Trunc);
return Trunc;
};
More information about the llvm-commits
mailing list