mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-19 11:41:53 +00:00
When a priority_queue is empty, the behavior of top() operator is
non-deterministic. Returns NULL when it's empty! llvm-svn: 28560
This commit is contained in:
parent
1bf57da16e
commit
7e0c2d106e
@ -356,6 +356,7 @@ public:
|
||||
}
|
||||
|
||||
SUnit *pop() {
|
||||
if (empty()) return NULL;
|
||||
SUnit *V = Queue.top();
|
||||
Queue.pop();
|
||||
return V;
|
||||
|
Loading…
x
Reference in New Issue
Block a user