summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-15 19:34:20 +0000
committerChris Lattner <sabre@nondot.org>2009-12-15 19:34:20 +0000
commita3aef788ec802875e26fc014a4040a024eb2b506 (patch)
tree92471879e0ce8bdb3c16b125ca8fcd0928d50021 /llvm/lib/Analysis/ValueTracking.cpp
parent38c4f4b5d12789311d41ad1f1bccbaf2f84d148c (diff)
downloadbcm5719-llvm-a3aef788ec802875e26fc014a4040a024eb2b506.tar.gz
bcm5719-llvm-a3aef788ec802875e26fc014a4040a024eb2b506.zip
Fix GetConstantStringInfo to not look into MDString (it works on
real data, not metadata) and fix DbgInfoPrinter to not abuse GetConstantStringInfo. llvm-svn: 91444
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 22c6e3b6f12..acd3119abea 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -1369,11 +1369,6 @@ bool llvm::GetConstantStringInfo(Value *V, std::string &Str, uint64_t Offset,
StopAtNul);
}
- if (MDString *MDStr = dyn_cast<MDString>(V)) {
- Str = MDStr->getString();
- return true;
- }
-
// The GEP instruction, constant or instruction, must reference a global
// variable that is a constant and is initialized. The referenced constant
// initializer is the array that we'll use for optimization.
OpenPOWER on IntegriCloud