diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-08-16 21:17:51 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-08-16 21:17:51 +0000 | 
| commit | e7145dcb9f6563389ebbfa0572ef7589bdd94b1b (patch) | |
| tree | b1b30c4998f6e9769784be87d402e4f8db13e34d /contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp | |
| parent | 3ca95b020283db6244cab92ede73c969253b6a31 (diff) | |
| parent | 7fd6ba58d980ec2bf312a80444948501dd27d020 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp b/contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp index c3c925cde2fd..04224e726797 100644 --- a/contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp +++ b/contrib/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.cpp @@ -44,8 +44,12 @@ llvm::MDNode *CodeGenTBAA::getRoot() {    // if our LLVM IR is linked with LLVM IR from a different front-end    // (or a different version of this front-end), their TBAA trees will    // remain distinct, and the optimizer will treat them conservatively. -  if (!Root) -    Root = MDHelper.createTBAARoot("Simple C/C++ TBAA"); +  if (!Root) { +    if (Features.CPlusPlus) +      Root = MDHelper.createTBAARoot("Simple C++ TBAA"); +    else +      Root = MDHelper.createTBAARoot("Simple C/C++ TBAA"); +  }    return Root;  }  | 
