Index: lib/IR/Verifier.cpp =================================================================== --- lib/IR/Verifier.cpp +++ lib/IR/Verifier.cpp @@ -2020,7 +2020,7 @@ continue; // FIXME: Once N is canonical, check "SP == &N". - Assert(SP->describes(&F), + Assert(SP && SP->describes(&F), "!dbg attachment points at wrong subprogram for function", N, &F, &I, DL, Scope, SP); }