Index: bolt/lib/Rewrite/RewriteInstance.cpp =================================================================== --- bolt/lib/Rewrite/RewriteInstance.cpp +++ bolt/lib/Rewrite/RewriteInstance.cpp @@ -3115,7 +3115,8 @@ } // Fill in CFI information for this function - if (!Function.trapsOnEntry() && !CFIRdWrt->fillCFIInfoFor(Function)) { + if (!Function.Instructions.empty() && !Function.trapsOnEntry() && + !CFIRdWrt->fillCFIInfoFor(Function)) { if (BC->HasRelocations) { BC->exitWithBugReport("unable to fill CFI.", Function); } else {