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 | 51260423ed052b52a4246c7643d33cb7750f3bd0 (patch) | |
tree | 2e09e35a1b987d29323926420971e90711eff0f8 /lib/Analysis/ValueTracking.cpp | |
parent | 465e633b903c1418bcf46021b2b1e02974505c8c (diff) | |
download | external_llvm-51260423ed052b52a4246c7643d33cb7750f3bd0.zip external_llvm-51260423ed052b52a4246c7643d33cb7750f3bd0.tar.gz external_llvm-51260423ed052b52a4246c7643d33cb7750f3bd0.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.cpp | 5 |
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. |