aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-11-16 04:24:59 +0000
committerDouglas Gregor <dgregor@apple.com>2012-11-16 04:24:59 +0000
commitf8715de59984b77cc10bbe5939c64a3d4a257942 (patch)
tree948f4bcf602cea60ab31a8f98e9ac2a2c0d95c03 /clang/lib/Frontend/CompilerInstance.cpp
parent106d7a27043d4f942d5284ee0c15513e6568ca71 (diff)
downloadllvm-f8715de59984b77cc10bbe5939c64a3d4a257942.zip
llvm-f8715de59984b77cc10bbe5939c64a3d4a257942.tar.gz
llvm-f8715de59984b77cc10bbe5939c64a3d4a257942.tar.bz2
Since CreateTargetInfo is taking ownership of the target options, pass
it as a pointer. llvm-svn: 168136
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 8282a9c..c2aff82 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -664,7 +664,7 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
raw_ostream &OS = llvm::errs();
// Create the target instance.
- setTarget(TargetInfo::CreateTargetInfo(getDiagnostics(), getTargetOpts()));
+ setTarget(TargetInfo::CreateTargetInfo(getDiagnostics(), &getTargetOpts()));
if (!hasTarget())
return false;