diff options
Diffstat (limited to 'utils/TableGen/SDNodeProperties.cpp')
-rw-r--r-- | utils/TableGen/SDNodeProperties.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/utils/TableGen/SDNodeProperties.cpp b/utils/TableGen/SDNodeProperties.cpp index 343febc99d1e..1843a78aa3cf 100644 --- a/utils/TableGen/SDNodeProperties.cpp +++ b/utils/TableGen/SDNodeProperties.cpp @@ -1,9 +1,8 @@ //===- SDNodeProperties.cpp -----------------------------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -39,9 +38,9 @@ unsigned llvm::parseSDPatternOperatorProperties(Record *R) { } else if (Property->getName() == "SDNPVariadic") { Properties |= 1 << SDNPVariadic; } else { - PrintFatalError("Unknown SD Node property '" + - Property->getName() + "' on node '" + - R->getName() + "'!"); + PrintFatalError(R->getLoc(), "Unknown SD Node property '" + + Property->getName() + "' on node '" + + R->getName() + "'!"); } } |