diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-19 18:20:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-19 18:20:44 +0000 |
commit | 5d5bc6d000c1a23cae7c12575aeba27653f34921 (patch) | |
tree | 599220daf19f9bad75216568f43026ec6f50a5ca /llvm/lib/Transforms/IPO/ConstantMerge.cpp | |
parent | 81ce842ecf7fcf59c4791c21c6f7a5124b5fd206 (diff) | |
download | llvm-5d5bc6d000c1a23cae7c12575aeba27653f34921.zip llvm-5d5bc6d000c1a23cae7c12575aeba27653f34921.tar.gz llvm-5d5bc6d000c1a23cae7c12575aeba27653f34921.tar.bz2 |
Use hasDefinitiveInitializer() instead of testing the same thing
by hand, and fix a few places that were using hasInitializer() that
appear to depend on the initializer value.
llvm-svn: 79441
Diffstat (limited to 'llvm/lib/Transforms/IPO/ConstantMerge.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ConstantMerge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp index 237e6db..c1a1045 100644 --- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp +++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp @@ -78,7 +78,7 @@ bool ConstantMerge::runOnModule(Module &M) { } // Only process constants with initializers. - if (GV->isConstant() && GV->hasInitializer()) { + if (GV->isConstant() && GV->hasDefinitiveInitializer()) { Constant *Init = GV->getInitializer(); // Check to see if the initializer is already known. |