diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/R600/SIAnnotateControlFlow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/R600/SIAnnotateControlFlow.cpp b/lib/Target/R600/SIAnnotateControlFlow.cpp index f580377..2477e2a 100644 --- a/lib/Target/R600/SIAnnotateControlFlow.cpp +++ b/lib/Target/R600/SIAnnotateControlFlow.cpp @@ -147,7 +147,7 @@ bool SIAnnotateControlFlow::doInitialization(Module &M) { /// \brief Is BB the last block saved on the stack ? bool SIAnnotateControlFlow::isTopOfStack(BasicBlock *BB) { - return Stack.back().first == BB; + return !Stack.empty() && Stack.back().first == BB; } /// \brief Pop the last saved value from the control flow stack |