summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-30 22:34:20 +0000
committerEric Christopher <echristo@gmail.com>2017-03-30 22:34:20 +0000
commitb9c56d123521ffaaa83a8760b7f927d6f32486f6 (patch)
treed5e6643e1e4346a261c8036c10256d50fc130a40 /llvm/lib/AsmParser/LLParser.cpp
parent79e5bc528d4666124ccb37a925ca62d80789e58b (diff)
downloadbcm5719-llvm-b9c56d123521ffaaa83a8760b7f927d6f32486f6.tar.gz
bcm5719-llvm-b9c56d123521ffaaa83a8760b7f927d6f32486f6.zip
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
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp3
1 files changed, 3 insertions, 0 deletions
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<Constant>(V);
return false;
}
+ case ValID::t_Null:
+ C = Constant::getNullValue(Ty);
+ return false;
default:
return Error(Loc, "expected a constant value");
}
OpenPOWER on IntegriCloud