diff options
author | DeLesley Hutchins <delesley@google.com> | 2014-05-29 21:24:16 +0000 |
---|---|---|
committer | DeLesley Hutchins <delesley@google.com> | 2014-05-29 21:24:16 +0000 |
commit | b603192124d4ffe6e4587766bc97d7854dfede81 (patch) | |
tree | 4a8d2a1de1693344641746714cec74d797d398d9 /clang/lib/Analysis/ThreadSafetyCommon.cpp | |
parent | 286ae08e7daad677ffa53799d2ec3fc9a9b1862b (diff) | |
download | llvm-b603192124d4ffe6e4587766bc97d7854dfede81.zip llvm-b603192124d4ffe6e4587766bc97d7854dfede81.tar.gz llvm-b603192124d4ffe6e4587766bc97d7854dfede81.tar.bz2 |
Thread Safety Analysis: implement review suggestions from Aaron Ballman.
llvm-svn: 209847
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyCommon.cpp')
-rw-r--r-- | clang/lib/Analysis/ThreadSafetyCommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/ThreadSafetyCommon.cpp b/clang/lib/Analysis/ThreadSafetyCommon.cpp index deb9ba9..da88b78 100644 --- a/clang/lib/Analysis/ThreadSafetyCommon.cpp +++ b/clang/lib/Analysis/ThreadSafetyCommon.cpp @@ -725,7 +725,7 @@ void SExprBuilder::exitCFGBlockBody(const CFGBlock *B) { if (N == 1) { til::BasicBlock *BB = *It ? lookupBlock(*It) : nullptr; // TODO: set index - unsigned Idx = BB->findPredecessorIndex(CurrentBB); + unsigned Idx = BB ? BB->findPredecessorIndex(CurrentBB) : 0; til::SExpr *Tm = new (Arena) til::Goto(BB, Idx); CurrentBB->setTerminator(Tm); } |