aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2011-05-07 23:46:16 -0700
committerShih-wei Liao <sliao@google.com>2011-05-07 23:46:16 -0700
commit00f22a25ef7f5dd00c45aff1d281c7c352145a48 (patch)
tree47fefdcbbf19c60430bb58f50a08ab1cdefe3259
parent0ccdcb4b0a32c8f60d78a6e329ffa3ead2289e4f (diff)
downloadexternal_llvm-00f22a25ef7f5dd00c45aff1d281c7c352145a48.zip
external_llvm-00f22a25ef7f5dd00c45aff1d281c7c352145a48.tar.gz
external_llvm-00f22a25ef7f5dd00c45aff1d281c7c352145a48.tar.bz2
Found and fixed the remaining divergence in lib/Analysis from upstream.
Remove the type casting of (BasicBlock*). Change-Id: I8f67cc42aa47efa8e10e549241c139f8b8fa35aa
-rw-r--r--lib/Analysis/PathProfileVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/PathProfileVerifier.cpp b/lib/Analysis/PathProfileVerifier.cpp
index 26d8741..c549773 100644
--- a/lib/Analysis/PathProfileVerifier.cpp
+++ b/lib/Analysis/PathProfileVerifier.cpp
@@ -126,7 +126,7 @@ bool PathProfileVerifier::runOnModule (Module &M) {
<< currentPath->getCount() << "\n");
// setup the entry edge (normally path profiling doens't care about this)
if (currentPath->getFirstBlockInPath() == &F->getEntryBlock())
- edgeArray[arrayMap[(BasicBlock *)0][currentPath->getFirstBlockInPath()][0]]
+ edgeArray[arrayMap[0][currentPath->getFirstBlockInPath()][0]]
+= currentPath->getCount();
for( ProfilePathEdgeIterator nextEdge = pev->begin(),