diff options
| author | Dan Gohman <gohman@apple.com> | 2010-07-13 19:33:27 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-07-13 19:33:27 +0000 |
| commit | 1e0213a75827425e19ca8f3dfe9604f23fbe3609 (patch) | |
| tree | 5dfd24dd372884cc89596292c4defedd948b967f /llvm/lib/AsmParser | |
| parent | 0cc4ad983d9511d1a02221c572670066b5858a8e (diff) | |
| download | bcm5719-llvm-1e0213a75827425e19ca8f3dfe9604f23fbe3609.tar.gz bcm5719-llvm-1e0213a75827425e19ca8f3dfe9604f23fbe3609.zip | |
Add support for empty metadata nodes: !{}.
llvm-svn: 108259
Diffstat (limited to 'llvm/lib/AsmParser')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 67521814b0c..8c4d7348eb1 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3983,6 +3983,10 @@ int LLParser::ParseInsertValue(Instruction *&Inst, PerFunctionState &PFS) { /// ::= 'null' | TypeAndValue bool LLParser::ParseMDNodeVector(SmallVectorImpl<Value*> &Elts, PerFunctionState *PFS) { + // Check for an empty list. + if (Lex.getKind() == lltok::rbrace) + return false; + do { // Null is a special case since it is typeless. if (EatIfPresent(lltok::kw_null)) { |

