summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorKarl Schimpf <kschimpf@google.com>2015-09-03 16:18:32 +0000
committerKarl Schimpf <kschimpf@google.com>2015-09-03 16:18:32 +0000
commit44876c535f55650a25417b3dc589bd9372bd4fec (patch)
tree24ddfcda965063c4390beba3c9aae1fa1dc7da47 /llvm/lib/AsmParser/LLParser.h
parente0495d987cd438bd37ff2a9b0b6d450943cbd7e2 (diff)
downloadbcm5719-llvm-44876c535f55650a25417b3dc589bd9372bd4fec.tar.gz
bcm5719-llvm-44876c535f55650a25417b3dc589bd9372bd4fec.zip
Fix assertion failure in LLParser::ConvertValIDToValue
Summary: Fixes bug 24645. Problem appears to be that the type may be undefined when ConvertValIDToValue is called. Reviewers: kcc Subscribers: llvm-commits llvm-svn: 246779
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index e161f95248c..51ba7dec919 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -59,7 +59,7 @@ namespace llvm {
LLLexer::LocTy Loc;
unsigned UIntVal;
- FunctionType *FTy;
+ FunctionType *FTy = nullptr;
std::string StrVal, StrVal2;
APSInt APSIntVal;
APFloat APFloatVal{0.0};
OpenPOWER on IntegriCloud