mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Add a comment which explains why the assert fired and how to fix it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
293e5d0e0a
commit
c97410eed2
@ -17,6 +17,10 @@ using namespace llvm;
|
||||
/// @note This has to exist, because this is a pass, but it should never be
|
||||
/// used.
|
||||
TargetTransformInfo::TargetTransformInfo() : ImmutablePass(ID) {
|
||||
/// You are seeing this error because your pass required the TTI
|
||||
/// using a call to "getAnalysis<TargetTransformInfo>()", and you did
|
||||
/// not initialize a machine target which can provide the TTI.
|
||||
/// You should use "getAnalysisIfAvailable<TargetTransformInfo>()" instead.
|
||||
report_fatal_error("Bad TargetTransformInfo ctor used. "
|
||||
"Tool did not specify a TargetTransformInfo to use?");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user