[llvm-branch-commits] [llvm-branch] r81964 - /llvm/branches/Apple/Bender-SWB/lib/CodeGen/MachineModuleInfo.cpp

Bill Wendling isanbard at gmail.com
Tue Sep 15 17:12:51 PDT 2009


Author: void
Date: Tue Sep 15 19:12:50 2009
New Revision: 81964

URL: http://llvm.org/viewvc/llvm-project?rev=81964&view=rev
Log:
Merge r80153 into Bender.

Modified:
    llvm/branches/Apple/Bender-SWB/lib/CodeGen/MachineModuleInfo.cpp

Modified: llvm/branches/Apple/Bender-SWB/lib/CodeGen/MachineModuleInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Bender-SWB/lib/CodeGen/MachineModuleInfo.cpp?rev=81964&r1=81963&r2=81964&view=diff

==============================================================================
--- llvm/branches/Apple/Bender-SWB/lib/CodeGen/MachineModuleInfo.cpp (original)
+++ llvm/branches/Apple/Bender-SWB/lib/CodeGen/MachineModuleInfo.cpp Tue Sep 15 19:12:50 2009
@@ -278,7 +278,7 @@
 }
 
 /// getPersonalityIndex - Return unique index for current personality
-/// function. NULL personality function should always get zero index.
+/// function. NULL/first personality function should always get zero index.
 unsigned MachineModuleInfo::getPersonalityIndex() const {
   const Function* Personality = NULL;
   
@@ -294,8 +294,7 @@
       return i;
   }
 
-  // This should never happen
-  assert(0 && "Personality function should be set!");
+  // This will happen if the current personality function is in the zero index.
   return 0;
 }
 





More information about the llvm-branch-commits mailing list