diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-15 19:34:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-15 19:34:20 +0000 |
commit | 524528e614e22362b966c43c084ca113a28b69ad (patch) | |
tree | 2e09e35a1b987d29323926420971e90711eff0f8 /lib/Analysis/ValueTracking.cpp | |
parent | f0a4fad9957bf5c088d61ff78067d83d23fae19c (diff) |
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.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index 22c6e3b6f1..acd3119abe 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. |