From eec878574eca0d7fa9c1811477a92781d1c54c51 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sun, 24 Jan 2016 16:46:53 +0000 Subject: [PATCH] Fix build bot breakage llvm-svn: 258661 --- llvm/lib/Transforms/Scalar/SCCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 58d769b2f02d..80aace2c8012 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1806,7 +1806,7 @@ bool IPSCCP::runOnModule(Module &M) { ++NumDeadBlocks; NumInstRemoved += - changeToUnreachable(&*BB->begin(), /*UseLLVMTrap=*/false); + changeToUnreachable(BB->getFirstNonPHI(), /*UseLLVMTrap=*/false); MadeChanges = true;