aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-02-18 23:16:51 +0000
committerVince Harron <vharron@google.com>2015-02-18 23:16:51 +0000
commite837626173908962a628edf870eb7ea3118a714c (patch)
treea16ce3c13fea73d77b6e032f75518eddfd0e5411 /llvm/lib/Object/IRObjectFile.cpp
parentef1df9ec73622fe3b96306bc892de16f739b6647 (diff)
downloadllvm-e837626173908962a628edf870eb7ea3118a714c.zip
llvm-e837626173908962a628edf870eb7ea3118a714c.tar.gz
llvm-e837626173908962a628edf870eb7ea3118a714c.tar.bz2
Fix TestDataFormatter* on Linux
llvm::StringRef doesn't make a copy of a string, it just holds a reference. When special_directions_stream went out of scope, special_directions was holding on to a stale pointer. Moving special_directions_stream into a higher scope to keep special_directions pointing to a valid string. llvm-svn: 229767
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions