diff options
Diffstat (limited to 'lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 63ce512508..a28155260e 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -515,6 +515,7 @@ void SCCP::OperandChangedState(User *U) { // to prove whether a value is constant and whether blocks are used. // bool opt::DoSCCP(Method *M) { + if (M->isExternal()) return false; SCCP S(M); return S.doSCCP(); } |