diff options
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/TargetTransformInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/TargetTransformInfo.cpp b/lib/VMCore/TargetTransformInfo.cpp index 3af0222a21..219d24c1f5 100644 --- a/lib/VMCore/TargetTransformInfo.cpp +++ b/lib/VMCore/TargetTransformInfo.cpp @@ -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?"); } |