[WinEH] Recognize CoreCLR personality function
[oota-llvm.git] / lib / CodeGen / DwarfEHPrepare.cpp
index e019dfbc8f7db0a666ae1581f8ac08121d17b8ac..0f6e1463f10f699d400eef1b1c70999345b4c33b 100644 (file)
@@ -192,9 +192,9 @@ bool DwarfEHPrepare::InsertUnwindResumeCalls(Function &Fn) {
   if (Resumes.empty())
     return false;
 
-  // Check the personality, don't do anything if it's for MSVC.
+  // Check the personality, don't do anything if it's funclet-based.
   EHPersonality Pers = classifyEHPersonality(Fn.getPersonalityFn());
-  if (isMSVCEHPersonality(Pers))
+  if (isFuncletEHPersonality(Pers))
     return false;
 
   LLVMContext &Ctx = Fn.getContext();