[llvm] r188924 - Style cleanup following David's review for r188876.
    Ahmed Bougacha 
    ahmed.bougacha at gmail.com
       
    Wed Aug 21 12:40:25 PDT 2013
    
    
  
Author: ab
Date: Wed Aug 21 14:40:25 2013
New Revision: 188924
URL: http://llvm.org/viewvc/llvm-project?rev=188924&view=rev
Log:
Style cleanup following David's review for r188876.
Modified:
    llvm/trunk/lib/MC/MCFunction.cpp
Modified: llvm/trunk/lib/MC/MCFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCFunction.cpp?rev=188924&r1=188923&r2=188924&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCFunction.cpp (original)
+++ llvm/trunk/lib/MC/MCFunction.cpp Wed Aug 21 14:40:25 2013
@@ -31,16 +31,15 @@ MCBasicBlock &MCFunction::createBlock(co
   return *MCBB;
 }
 
-const MCBasicBlock *MCFunction::find(uint64_t StartAddr) const {
+MCBasicBlock *MCFunction::find(uint64_t StartAddr) {
   for (const_iterator I = begin(), E = end(); I != E; ++I)
     if ((*I)->getInsts()->getBeginAddr() == StartAddr)
-      return (*I);
+      return *I;
   return 0;
 }
 
-MCBasicBlock *MCFunction::find(uint64_t StartAddr) {
-  return const_cast<MCBasicBlock *>(
-           const_cast<const MCFunction *>(this)->find(StartAddr));
+const MCBasicBlock *MCFunction::find(uint64_t StartAddr) const {
+  return const_cast<MCFunction *>(this)->find(StartAddr);
 }
 
 // MCBasicBlock
    
    
More information about the llvm-commits
mailing list