forked from OSchip/llvm-project
parent
8b7706517c
commit
611dfed99f
|
@ -649,9 +649,8 @@ void clang::EmitBackendOutput(DiagnosticsEngine &Diags,
|
|||
// If an optional clang TargetInfo description string was passed in, use it to
|
||||
// verify the LLVM TargetMachine's DataLayout.
|
||||
if (AsmHelper.TM && !TDesc.empty()) {
|
||||
std::string DLDesc = AsmHelper.TM->getSubtargetImpl()
|
||||
->getDataLayout()
|
||||
->getStringRepresentation();
|
||||
std::string DLDesc =
|
||||
AsmHelper.TM->getDataLayout()->getStringRepresentation();
|
||||
if (DLDesc != TDesc) {
|
||||
unsigned DiagID = Diags.getCustomDiagID(
|
||||
DiagnosticsEngine::Error, "backend data layout '%0' does not match "
|
||||
|
|
Loading…
Reference in New Issue