summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader
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
commit1ca114a66b666f932741d00d74636dc35ea1d466 (patch)
treecd916793202962032b7fed9498a6b8c687882ca1 /lib/Bitcode/Reader
parent4156ca76e31877b17063a6e01fb7f1dad771c5aa (diff)
downloadllvm-1ca114a66b666f932741d00d74636dc35ea1d466.tar.gz
llvm-1ca114a66b666f932741d00d74636dc35ea1d466.tar.bz2
llvm-1ca114a66b666f932741d00d74636dc35ea1d466.tar.xz
trivial micro-optimization: lazily call the virtual method instead of eagerly calling it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index 219fc1877d..00474ec6da 100644
--- a/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/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();