summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2013-01-20 02:54:05 +0000
committerChris Lattner <sabre@nondot.org>2013-01-20 02:54:05 +0000
commit8d14053545837ab221c84f3614e65661002a3bda (patch)
tree55908f772ac50f032f48683efd751f217f63aa3a /llvm/lib/Bitcode
parent0271af8dc91d0564135a75ae06eb9e153aab5517 (diff)
downloadbcm5719-llvm-8d14053545837ab221c84f3614e65661002a3bda.tar.gz
bcm5719-llvm-8d14053545837ab221c84f3614e65661002a3bda.zip
trivial micro-optimization: lazily call the virtual method instead of eagerly calling it.
llvm-svn: 172953
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 219fc1877df..00474ec6dad 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -796,7 +796,7 @@ bool BitcodeReader::ParseMetadata() {
default: // Default behavior: ignore.
break;
case bitc::METADATA_NAME: {
- // Read named of the named metadata.
+ // Read name of the named metadata.
SmallString<8> Name(Record.begin(), Record.end());
Record.clear();
Code = Stream.ReadCode();
OpenPOWER on IntegriCloud