aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authorGabor Marton <martongabesz@gmail.com>2019-02-28 15:24:59 +0000
committerGabor Marton <martongabesz@gmail.com>2019-02-28 15:24:59 +0000
commita006b80a74874fbc25e349dcb71462fc5f93aac7 (patch)
treee51a213d98ddc254491339f35c0f2ccb614f6b79 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parentdf587199794469b4b47ae53b0be01a98b5e3ec0f (diff)
downloadllvm-a006b80a74874fbc25e349dcb71462fc5f93aac7.zip
llvm-a006b80a74874fbc25e349dcb71462fc5f93aac7.tar.gz
llvm-a006b80a74874fbc25e349dcb71462fc5f93aac7.tar.bz2
[CTU] Do not allow different CPP dialects in CTU
Summary: If CPP dialects are different then return with error. Consider this STL code: template<typename _Alloc> struct __alloc_traits #if __cplusplus >= 201103L : std::allocator_traits<_Alloc> #endif { // ... }; This class template would create ODR errors during merging the two units, since in one translation unit the class template has a base class, however in the other unit it has none. Reviewers: xazax.hun, a_sidorin, r.stahl Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57906 llvm-svn: 355096
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
0 files changed, 0 insertions, 0 deletions