aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/SMLoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/SMLoc.h')
-rw-r--r--include/llvm/Support/SMLoc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/SMLoc.h b/include/llvm/Support/SMLoc.h
index d5b4c57a8fd6..c6e9a14e82ac 100644
--- a/include/llvm/Support/SMLoc.h
+++ b/include/llvm/Support/SMLoc.h
@@ -22,6 +22,7 @@ namespace llvm {
/// Represents a location in source code.
class SMLoc {
const char *Ptr;
+
public:
SMLoc() : Ptr(nullptr) {}
@@ -53,11 +54,10 @@ public:
assert(Start.isValid() == End.isValid() &&
"Start and end should either both be valid or both be invalid!");
}
-
+
bool isValid() const { return Start.isValid(); }
};
-
+
} // end namespace llvm
#endif
-