aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit524528e614e22362b966c43c084ca113a28b69ad (patch)
tree2e09e35a1b987d29323926420971e90711eff0f8 /lib/Analysis/ValueTracking.cpp
parentf0a4fad9957bf5c088d61ff78067d83d23fae19c (diff)
downloadexternal_llvm-524528e614e22362b966c43c084ca113a28b69ad.zip
external_llvm-524528e614e22362b966c43c084ca113a28b69ad.tar.gz
external_llvm-524528e614e22362b966c43c084ca113a28b69ad.tar.bz2
Fix GetConstantStringInfo to not look into MDString (it works on
real data, not metadata) and fix DbgInfoPrinter to not abuse GetConstantStringInfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ValueTracking.cpp')
-rw-r--r--lib/Analysis/ValueTracking.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp
index 22c6e3b..acd3119 100644
--- a/lib/Analysis/ValueTracking.cpp
+++ b/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.