File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ Function *MachineModuleInfo::getPersonality() const {
278
278
}
279
279
280
280
// / getPersonalityIndex - Return unique index for current personality
281
- // / function. NULL personality function should always get zero index.
281
+ // / function. NULL/first personality function should always get zero index.
282
282
unsigned MachineModuleInfo::getPersonalityIndex () const {
283
283
const Function* Personality = NULL ;
284
284
@@ -294,8 +294,8 @@ unsigned MachineModuleInfo::getPersonalityIndex() const {
294
294
return i;
295
295
}
296
296
297
- // This should never happen
298
- llvm_unreachable ( " Personality function should be set! " );
297
+ // This will happen if the current personality function is
298
+ // in the zero index.
299
299
return 0 ;
300
300
}
301
301
You can’t perform that action at this time.
0 commit comments