summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-09-13 01:13:19 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-09-13 01:13:19 +0000
commiteeb56abe643929f570006917c088e53bc7c896a4 (patch)
tree8ab0ef53b7f276c157d86f71eb1200e944be668b /clang/lib/CodeGen/CodeGenFunction.cpp
parentd4135bbc30de3d3dbd44d64d718fb2169f41bae0 (diff)
downloadbcm5719-llvm-eeb56abe643929f570006917c088e53bc7c896a4.tar.gz
bcm5719-llvm-eeb56abe643929f570006917c088e53bc7c896a4.zip
Update Clang for D20147 ("DebugInfo: New metadata representation for global variables.")
Differential Revision: http://reviews.llvm.org/D20415 llvm-svn: 281285
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 2341eab0b31..116079e4a7f 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -1840,8 +1840,8 @@ Address CodeGenFunction::EmitMSVAListRef(const Expr *E) {
}
void CodeGenFunction::EmitDeclRefExprDbgValue(const DeclRefExpr *E,
- llvm::Constant *Init) {
- assert (Init && "Invalid DeclRefExpr initializer!");
+ const APValue &Init) {
+ assert(!Init.isUninit() && "Invalid DeclRefExpr initializer!");
if (CGDebugInfo *Dbg = getDebugInfo())
if (CGM.getCodeGenOpts().getDebugInfo() >= codegenoptions::LimitedDebugInfo)
Dbg->EmitGlobalVariable(E->getDecl(), Init);
OpenPOWER on IntegriCloud