fixing wrong fatal ...
@@ -344,13 +344,14 @@ static std::string getSourceName(llvm::Function *F) {
(LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 7)
if (Loc) {
+ StringRef instFilename;
DILocation *cDILoc = dyn_cast<DILocation>(Loc.getAsMDNode());
- if (!cDILoc) {
- FATAL("DebugLoc is no DILocation");
- }
+ if (cDILoc) {
+
+ instFilename = cDILoc->getFilename();
- StringRef instFilename = cDILoc->getFilename();
+ }
if (instFilename.str().empty()) {
