diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-08 18:04:22 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-08 18:04:22 +0000 |
commit | fbc38d2c16bc2fb923efdbbd6035ec8233fb4856 (patch) | |
tree | cbc2488132decad6df4b6d59932db1f2122772c9 /utils | |
parent | 2cf158ec4bf78f236976f07e09d7b1fe6be13994 (diff) | |
download | external_llvm-fbc38d2c16bc2fb923efdbbd6035ec8233fb4856.zip external_llvm-fbc38d2c16bc2fb923efdbbd6035ec8233fb4856.tar.gz external_llvm-fbc38d2c16bc2fb923efdbbd6035ec8233fb4856.tar.bz2 |
Fix a dangling reference. Patch by Dave Abrahams. pr10311
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134709 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/AsmMatcherEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 63b0dd9..8da8ab9 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -1825,7 +1825,8 @@ static void EmitComputeAvailableFeatures(AsmMatcherInfo &Info, SubtargetFeatureInfo &SFI = *it->second; OS << " if ("; - StringRef Conds = SFI.TheDef->getValueAsString("AssemblerCondString"); + std::string CondStorage = SFI.TheDef->getValueAsString("AssemblerCondString"); + StringRef Conds = CondStorage; std::pair<StringRef,StringRef> Comma = Conds.split(','); bool First = true; do { |