summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-08 20:52:55 +0000
committerDevang Patel <dpatel@apple.com>2010-03-08 20:52:55 +0000
commit3b548aa8e2c32460b21dd47b89fd1267fcd35504 (patch)
tree401064ad423c8d53daa408b7201059effb519afa /llvm/lib/CodeGen/MachineInstr.cpp
parent2e8b9b5ad3d5ff3b61ee2ff6d279e87a1d768870 (diff)
downloadbcm5719-llvm-3b548aa8e2c32460b21dd47b89fd1267fcd35504.tar.gz
bcm5719-llvm-3b548aa8e2c32460b21dd47b89fd1267fcd35504.zip
Avoid using DIDescriptor.isNull().
This is a first step towards eliminating checks in Descriptor constructors. llvm-svn: 97975
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index e23670d1d1d..4c7cb8f3aae 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -1219,7 +1219,7 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
DIScope Scope = DLT.getScope();
OS << " dbg:";
// Omit the directory, since it's usually long and uninteresting.
- if (!Scope.isNull())
+ if (Scope.Verify())
OS << Scope.getFilename();
else
OS << "<unknown>";
OpenPOWER on IntegriCloud