mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Remove named Twine.
While technically correct, we generally disallow any instance of named Twines due to their subtlety. llvm-svn: 204016
This commit is contained in:
parent
0ca2e11cf6
commit
60ddd2b93c
@ -972,10 +972,8 @@ unsigned SampleFunctionProfile::getFunctionLoc(Function &F) {
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user