diff options
Diffstat (limited to 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index 68eb9d56c0..5a6db1c9c0 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -1196,12 +1196,10 @@ bool AsmParser::ParseDirectiveInclude() { /// ParseDirectiveDarwinDumpOrLoad /// ::= ( .dump | .load ) "filename" bool AsmParser::ParseDirectiveDarwinDumpOrLoad(bool IsDump) { - const char *Str; - if (Lexer.isNot(asmtok::String)) return TokError("expected string in '.dump' or '.load' directive"); - Str = Lexer.getCurStrVal(); + const char *Str = Lexer.getCurStrVal(); Lexer.Lex(); |