While technically correct, we generally disallow any instance of named
Twines due to their subtlety.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204016
91177308-0d34-0410-b5e6-
96231b3b80d8
}
}
- StringRef FnName = F.getName();
- Twine Msg = "No debug information found in function " + FnName;
- DiagnosticInfoSampleProfile Diag(Msg);
- F.getContext().diagnose(Diag);
+ F.getContext().diagnose(DiagnosticInfoSampleProfile(
+ "No debug information found in function " + F.getName()));
return 0;
}