summaryrefslogtreecommitdiff
path: root/lib/AsmParser/Parser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-06 00:26:48 +0000
committerChris Lattner <sabre@nondot.org>2010-04-06 00:26:48 +0000
commit8f0f480a10cd5b62914fd53611e696c5069fc62d (patch)
treeddb0af86b39e52ed6f6d7f931268d32a9f315816 /lib/AsmParser/Parser.cpp
parenta03948633ae848af9cecce0a8042c7db4dac44d9 (diff)
downloadllvm-8f0f480a10cd5b62914fd53611e696c5069fc62d.tar.gz
llvm-8f0f480a10cd5b62914fd53611e696c5069fc62d.tar.bz2
llvm-8f0f480a10cd5b62914fd53611e696c5069fc62d.tar.xz
Give llvm::SourceMgr the ability to have a client-specified
diagnostic handler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/Parser.cpp')
-rw-r--r--lib/AsmParser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp
index 1ab37345b2..7280cf479f 100644
--- a/lib/AsmParser/Parser.cpp
+++ b/lib/AsmParser/Parser.cpp
@@ -44,7 +44,7 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Err,
std::string ErrorStr;
MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr);
if (F == 0) {
- Err = SMDiagnostic("", -1, -1,
+ Err = SMDiagnostic(SMLoc(), "", -1, -1,
"Could not open input file '" + Filename + "': " +
ErrorStr, "");
return 0;