Skip to content

Commit f490552

Browse files
committed
Document lifetime on CreateTargetInfo()
1 parent 5a8c392 commit f490552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/TargetInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class TargetInfo : public TransferrableTargetInfo,
310310
///
311311
/// \param Opts - The options to use to initialize the target. The target may
312312
/// modify the options to canonicalize the target feature information to match
313-
/// what the backend expects.
313+
/// what the backend expects. These must outlive the returned TargetInfo.
314314
static TargetInfo *CreateTargetInfo(DiagnosticsEngine &Diags,
315315
TargetOptions &Opts);
316316

0 commit comments

Comments
 (0)