[llvm] r258661 - Fix build bot breakage

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 24 08:46:54 PST 2016


Author: majnemer
Date: Sun Jan 24 10:46:53 2016
New Revision: 258661

URL: http://llvm.org/viewvc/llvm-project?rev=258661&view=rev
Log:
Fix build bot breakage

Modified:
    llvm/trunk/lib/Transforms/Scalar/SCCP.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=258661&r1=258660&r2=258661&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Sun Jan 24 10:46:53 2016
@@ -1806,7 +1806,7 @@ bool IPSCCP::runOnModule(Module &M) {
 
         ++NumDeadBlocks;
         NumInstRemoved +=
-            changeToUnreachable(&*BB->begin(), /*UseLLVMTrap=*/false);
+            changeToUnreachable(BB->getFirstNonPHI(), /*UseLLVMTrap=*/false);
 
         MadeChanges = true;
 




More information about the llvm-commits mailing list