From b9c56d123521ffaaa83a8760b7f927d6f32486f6 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 30 Mar 2017 22:34:20 +0000 Subject: getPristineRegs is not accurately considering shrink wrapping puts registers not saved in certain blocks. Use explicit getCalleeSavedInfo and isLiveIn instead. This fixes pr32292. Patch by Tim Shen! llvm-svn: 299124 --- llvm/lib/AsmParser/LLParser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/AsmParser') diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index ab315dd2c7f..d8f6c1c5146 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -4593,6 +4593,9 @@ bool LLParser::parseConstantValue(Type *Ty, Constant *&C) { C = cast(V); return false; } + case ValID::t_Null: + C = Constant::getNullValue(Ty); + return false; default: return Error(Loc, "expected a constant value"); } -- cgit v1.2.3