diff options
author | Duncan Sands <baldrick@free.fr> | 2007-07-19 07:31:58 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-07-19 07:31:58 +0000 |
commit | 70d0bd16243e1e8b59e2689760cb2e5c1e521290 (patch) | |
tree | 862f744ac4656f180878c76fa6eeba307b247c5f /lib | |
parent | 71a1e57d1887341dc3093c12c464f1bc839e7ab5 (diff) | |
download | external_llvm-70d0bd16243e1e8b59e2689760cb2e5c1e521290.tar.gz external_llvm-70d0bd16243e1e8b59e2689760cb2e5c1e521290.tar.bz2 external_llvm-70d0bd16243e1e8b59e2689760cb2e5c1e521290.zip |
As pointed out by g++-4.2, the original code didn't do
what it thought it was doing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 9803ab87e2..4b768c2354 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3642,7 +3642,7 @@ void SDNode::dump(const SelectionDAG *G) const { cerr << MVT::getValueTypeString(LD->getLoadedVT()) << ">"; const char *AM = getIndexedModeName(LD->getAddressingMode()); - if (AM != "") + if (*AM) cerr << " " << AM; } else if (const StoreSDNode *ST = dyn_cast<StoreSDNode>(this)) { if (ST->isTruncatingStore()) @@ -3650,7 +3650,7 @@ void SDNode::dump(const SelectionDAG *G) const { << MVT::getValueTypeString(ST->getStoredVT()) << ">"; const char *AM = getIndexedModeName(ST->getAddressingMode()); - if (AM != "") + if (*AM) cerr << " " << AM; } } |