Use P[0] instead of P[ reinterpret_cast<const llvm::BasicBlock*>(0) ].
For example, we no longer trigger map::operator[](int const &key) when we see a[0].
Change-Id: Ib2eb787358f9a869f1a2d0b567ebb51f02b6776d
diff --git a/lib/Analysis/ProfileInfo.cpp b/lib/Analysis/ProfileInfo.cpp
index 5c324fb..7a38d56 100644
--- a/lib/Analysis/ProfileInfo.cpp
+++ b/lib/Analysis/ProfileInfo.cpp
@@ -249,7 +249,7 @@
succ_const_iterator Succ = succ_begin(BB), End = succ_end(BB);
if (Succ == End) {
- P[ reinterpret_cast<const llvm::BasicBlock*>(0) ] = BB;
+ P[0] = BB;
if (Mode & GetPathToExit) {
hasFoundPath = true;
BB = 0;