summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-02-25 07:53:36 +0000
committerDaniel Jasper <djasper@google.com>2017-02-25 07:53:36 +0000
commit6249d4d33780046305c63a7370bf255940654e54 (patch)
tree7691593584ad36592eb4ddd47365c18b9f48f093
parentdcfe34e6672f2fbe10046e798772ec317902670b (diff)
downloadbcm5719-llvm-6249d4d33780046305c63a7370bf255940654e54.tar.gz
bcm5719-llvm-6249d4d33780046305c63a7370bf255940654e54.zip
Add static_cast to silence -Wc++11-narrowing.
llvm-svn: 296249
-rw-r--r--llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp
index ad1e6db6e07..e9e8ab8c973 100644
--- a/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp
+++ b/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp
@@ -452,7 +452,7 @@ TEST_F(BinaryStreamTest, StreamReaderObject) {
std::vector<Foo> Foos;
Foos.push_back({-42, 42.42, 42});
- Foos.push_back({100, 3.1415, -89});
+ Foos.push_back({100, 3.1415, static_cast<char>(-89)});
const uint8_t *Bytes = reinterpret_cast<const uint8_t *>(&Foos[0]);
OpenPOWER on IntegriCloud