mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Remove named Twine.
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
This commit is contained in:
parent
d5452e386c
commit
72ca6ef7f8
@ -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…
x
Reference in New Issue
Block a user