diff options
author | John McCall <rjmccall@apple.com> | 2010-10-09 01:34:31 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-09 01:34:31 +0000 |
commit | 189d6ef40eff11b83b2cda941d5ed89a5cef09b2 (patch) | |
tree | b3ed268c2a51e3b69a2da8173a7de925861ed445 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 59705aee3fe01aa6fb6962dd11350161b47983d9 (diff) |
Permit constant evaluation of const floating-point variables with
constant initializers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index ed43ccadd2..d291d40c55 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -1547,7 +1547,7 @@ llvm::Value *CodeGenFunction::getEHCleanupDestSlot() { } void CodeGenFunction::EmitDeclRefExprDbgValue(const DeclRefExpr *E, - llvm::ConstantInt *Init) { + llvm::Constant *Init) { assert (Init && "Invalid DeclRefExpr initializer!"); if (CGDebugInfo *Dbg = getDebugInfo()) Dbg->EmitGlobalVariable(E->getDecl(), Init); |