summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-09 01:34:31 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-09 01:34:31 +0000
commita2fabff4f6f4ccbbd6d237d6737720a91b6cc030 (patch)
treede92f1621f9dd4ba2fb94bb01130292a1ede0abb /clang/lib/CodeGen/CodeGenFunction.cpp
parentf4de10d2907cf5187378407fe84d6446531e2669 (diff)
downloadbcm5719-llvm-a2fabff4f6f4ccbbd6d237d6737720a91b6cc030.tar.gz
bcm5719-llvm-a2fabff4f6f4ccbbd6d237d6737720a91b6cc030.zip
Permit constant evaluation of const floating-point variables with
constant initializers. llvm-svn: 116138
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index ed43ccadd2d..d291d40c559 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud